pamrTrain: Function providing a formula interface to pamr.train

Description Usage Arguments Value Author(s) See Also Examples

Description

Function that provides a classical R modelling interface, using a formula and data argument

Usage

1

Arguments

formula

formula

data

data frame

...

further arguments to be passed to pamr.train

Value

Object that is perfectly identical to the object returned by pamr.train

Author(s)

Tobias Verbeke

See Also

pamr.train

Examples

1
2
3
4
5
  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)

nlcv documentation built on May 2, 2019, 7:28 a.m.

Related to pamrTrain in nlcv...