p.value.varComp.test: Extracting p-values

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

View source: R/p.value.R

Description

p.value is a generic function for extracting p-values of tests.

Usage

1
2
3
4
5
6
7
8
9
p.value(x)
## Default S3 method:
p.value(x)
## S3 method for class 'htest'
p.value(x)
## S3 method for class 'varComp.test'
p.value(x)
## S3 method for class 'varCompFixEf'
p.value(x)

Arguments

x

An R object from which to extract p-values.

Details

By default, p.value extract the $p.value component from an htest object.

The p.value.varComp.test function extracts p-values from all tests in the object. The p.value.varCompFixEf function extracts individual p-values of tests of fixed effect with the overall p-value as the Overall attribute.

Value

A numeric vector of p-value(s)

Author(s)

Long Qu

See Also

varComp.test

Examples

1
2
3
4
5
6
library(nlme)
data(Oxide)
vcf = varComp(Thickness~Source, Oxide, ~Lot/Wafer)
coef(vcf, 'varComp')
p.value(varComp.test(vcf))  ## test both Lot and Wafer%in%Lot
p.value(varComp.test(vcf, null=1))  ## test Wafer%in%Lot

varComp documentation built on May 2, 2019, 5:15 p.m.