Re: [R] HOW TO SOLVE THIS PROBLEM (RVALS)

2021-08-08 Thread Rui Barradas

Hello,

nobs is missing in your example.

Assuming that envelope is the function in package base boot, I cannot 
reproduce the error.



set.seed(2021)
nc <- 1
nobs <- 100
M1 <- matrix(evd::rfrechet(nc*nobs),nrow=nobs,ncol=nc)
M <- t(apply(M1,2,sort))
E <- boot::envelope(mat=M) #compute 95% confidance bands

str(E)
#List of 7
# $ point  : num [1:2, 1:100] 0.302 0.12 0.341 0.167 0.373 ...
# $ overall: num [1:2, 1:100] 0.3698 0.0832 0.4163 0.1287 0.4499 ...
# $ k.pt   : num [1:2] 250 9751
# $ err.pt : num [1:2] 0.05 0.562
# $ k.ov   : num [1:2] 11 9990
# $ err.ov : num [1:2] 0.0022 0.0496
# $ err.nom: num [1:2] 0.05 0.05


Hope this helps,

Rui Barradas


Às 08:53 de 07/08/21, SITI AISYAH ZAKARIA escreveu:

Hi,

Can anyone help me how to solve this problem?

  #calculation of confidence intervals
1. > nc <- 1
2. > M1 <- matrix(rfrechet(nc*nobs),nrow=nobs,ncol=nc)
3. > M <- t(apply(M1,2,sort))
4. > E <- envelope(mat=M) #compute 95% confidance bands
*Error in envelope.matrix(mat = M) : rvals must be supplied*

My problem is after I run my coding in line 4 the error is highlighted red
is come out. I don't know how to solve it. Please help me.

Thank you



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] HOW TO SOLVE THIS PROBLEM (RVALS)

2021-08-08 Thread SITI AISYAH ZAKARIA
Hi,

Can anyone help me how to solve this problem?

 #calculation of confidence intervals
1. > nc <- 1
2. > M1 <- matrix(rfrechet(nc*nobs),nrow=nobs,ncol=nc)
3. > M <- t(apply(M1,2,sort))
4. > E <- envelope(mat=M) #compute 95% confidance bands
*Error in envelope.matrix(mat = M) : rvals must be supplied*

My problem is after I run my coding in line 4 the error is highlighted red
is come out. I don't know how to solve it. Please help me.

Thank you

-- 





"..Millions of trees are used to make papers, only to be thrown away 
after a couple of minutes reading from them. Our planet is at stake. Please 
be considerate. THINK TWICE BEFORE PRINTING THIS.."

DISCLAIMER: This email \ and any files transmitte...{{dropped:24}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.