Learn R Programming

dr (version 1.0.2)

dr.permutation.test: Dimension Reduction Regression Functions

Description

These functions require a dimension reduction regression object as input to produce output of various types.

Usage

dr.permutation.test(object, npermute=50,numdir=object$numdir,permute.weights=TRUE)

Arguments

object
a dimension reduction regression object created by dr
npermute
number of permutations to compute, default is 50
numdir
maximum permitted value of the dimension, with the default from the object
permute.weights
If TRUE, permute weights as well as data in the permutation test. If FALSE, do not permute the weights.

Value

  • Returns an object of type 'dr.permutation.test' that can be printed or summarized to give the summary of the test.

References

See www.stat.umn.edu/arc/addons.html, and then select the article on dimension reduction regression or inverse regression.

See Also

dr

Examples

Run this code
data(ais)
attach(ais)  # the Australian athletes data
#fit dimension reduction regression using sir
m1 <- dr(LBM~Wt+Ht+RCC+WCC, method="sir", nslices = 8)
summary(m1)
dr.permutation.test(m1,npermute=100)
plot(m1)
dr.coplot(m1)

Run the code above in your browser using DataLab