sbpval {scaleboot} | R Documentation |
sbpval
extracts p-values from "summary.scaleboot"
or
"summary.scalebootv"
objects.
sbpval(x, ...) ## S3 method for class 'summary.scaleboot': sbpval(x,sd=FALSE,best=FALSE,...) ## S3 method for class 'summary.scalebootv': sbpval(x,...)
x |
an object used to select a method. |
sd |
logical. Should standard errors be returned as well? |
best |
logical. Should only the best model be returned? |
... |
further arguments passed to or from other methods. |
This method is only to extract previously calculated p-values from the summary object.
sbpval
method for class "summary.scaleboot"
returns a
matrix of p-values. Each row is a vector of
hatα_{k,σ_0} for k specified in summary
method.
If sd=TRUE
, it returns a list with two components
estimate
for p-values and sd
for its standard errors.
If best=TRUE
, only the result for the best model is returned.
sbpval
method for class "summary.scalebootv"
returns a
list vector with each component obtained by applying sbpval
to
each "scaleboot"
object.
Hidetoshi Shimodaira
data(mam15) a <- mam15.relltest[["t4"]] # an object of class "scaleboot" b <- summary(a) # calculate p-values b # print the p-values sbpval(b) # extract a matrix p-values sbpval(b,sd=TRUE) # with sd sbpval(b,best=TRUE) # extract a vector of p-values sbpval(b,best=TRUE,sd=TRUE) # with sd