sbpval {scaleboot}R Documentation

Extract P-values

Description

sbpval extracts p-values from "summary.scaleboot" or "summary.scalebootv" objects.

Usage

sbpval(x, ...)

## S3 method for class 'summary.scaleboot':
sbpval(x,sd=FALSE,select=c("average","best","all"),...)

## S3 method for class 'summary.scalebootv':
sbpval(x,...)

Arguments

x an object used to select a method.
sd logical. Should standard errors be returned as well?
select character. If "average" or "best", only the p-values of corresponding models are returned. If "all", then p-values of all the models are returned.
... further arguments passed to or from other methods.

Details

This method is used only to extract previously calculated p-values from the summary object.

Value

The sbpval method for the class "summary.scaleboot" returns a matrix of p-values. Each row is a vector of p_k for k as specified in the summary method. If sd=TRUE, then it returns a list with two components: estimate for the p-values and sd for its standard errors.
The sbpval method for the class "summary.scalebootv" returns a list vector with each component obtained by applying sbpval to each "scaleboot" object.

Author(s)

Hidetoshi Shimodaira

See Also

summary.scaleboot.

Examples

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 vector of p-values which are averaged by Akaike weights.
sbpval(b,sd=TRUE) # with sd
sbpval(b,select="all") # extract a matrix of p-values
sbpval(b,select="all",sd=TRUE) # with sd

[Package scaleboot version 0.3-2 Index]