Function providing a formula interface to pamr.train
Function that provides a classical R modelling interface, using a formula
and data
argument
pamrTrain(formula, data, ...)
formula
: formuladata
: data frame...
: further arguments to be passed to pamr.train
Object that is perfectly identical to the object returned by pamr.train
set.seed(120) x <- matrix(rnorm(1000*20), ncol=20) y <- sample(c(1:4), size=20, replace=TRUE) alldf <- cbind.data.frame(t(x), y) pamrTrain(y ~ ., alldf)
pamr.train
Tobias Verbeke
Useful links