These functions require a dimension reduction regression object as input to produce output of various types.
dr.permutation.test(object, npermute=50,numdir=object$numdir,permute.weights=TRUE)
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. |
Returns an object of type 'dr.permutation.test' that can be printed or summarized to give the summary of the test.
Sanford Weisberg, sandy@stat.umn.edu
See www.stat.umn.edu/arc/addons.html, and then select the article on dimension reduction regression or inverse regression.
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)