sbpval: Extract P-values

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/summary.R

Description

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

Usage

1
2
3
4
5
6
7
sbpval(x, ...)

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

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

Arguments

x

an object used to select a method.

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 list of three components (pvalue, sd, hypothesis). pvalue is a vector of pvalues p_k for k as specified in the summary method. sd is a vector of their standard errors. hypothesis is either "null" or "alternative" for the selective inference.

The sbpval method for the class "summary.scalebootv" returns a list of the three components, where pvalue and sd are matrices and hypothesis is a vector.

Author(s)

Hidetoshi Shimodaira

See Also

summary.scaleboot.

Examples

1
2
3
4
5
6
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,select="all") # extract a matrix of p-values

scaleboot documentation built on Dec. 4, 2019, 5:07 p.m.