Learn R Programming

mcprofile (version 0.0-9)

test-methods: Multiple Tests for Multiple Contrast Profiles

Description

Calculates adjusted p-values based on mcprofile, or mcprofileRatio objects. Test statistics are found by spline interpolation at a specified test margin. Multiplicity adjustment can be performed by utilizing a multivariate normal or t-distribution, or by any method provided by p.adjust.

Usage

## S3 method for class 'mcprofile':
test(object, adjust="single-step",
alternative="two.sided", margin=0)

Arguments

object
An object of class mcprofile, or mcprofileRatio
adjust
Multiplicity adjustment method: "single-step" for utilizing a multivariate normal or t-distribution, or any method provided by p.adjust.
alternative
One- or two-sided testing by "two.sided", "less", or "greater"
margin
Test margin to define a null hypothesis; until now only a single margin for all tests. If the profile range does not include the test margin, test statistics are found by extrapolation!

Value

  • An object of class mcptest

Details

Test statistics are found by spline interpolation using the splines in the fsplines slot of the mcprofile, or mcprofileRatio object. p-values are calculated from a normal distribution, or t-distribution if the df slot is not empty (gaussian families). For "single-step" adjustment the correlation structure of a multivariate normal distribution is estimated by standardizing the variance-covariance matrix of the linear combinations of parameters. This vcov matrix is obtained by multiplying the original vcov matrix with the prespecified contrast matrix from both sides.

See Also

mcpcalc, glht, simtest.ratio