Learn R Programming

varComp (version 0.2-0)

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

Description

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

Usage

p.value(x,...)
# S3 method for default
p.value(x,...)
# S3 method for htest
p.value(x,...)
# S3 method for varComp.test
p.value(x,...)
# S3 method for varCompFixEf
p.value(x,...)

Arguments

x

An R object from which to extract p-values.

Additional arguments that might be used by individual methods.

Value

A numeric vector of \(p\)-value(s)

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.

See Also

varComp.test

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab