This is a test version of Biostars. For the public version, visit https://www.biostars.org.
PAMR Error in 1:ncol(data$x) : argument of length 0

I am trying to reproduce the PAMR results following this link: http://statweb.stanford.edu/~tibs/PAM/Rdist/doc/readme.html

> library(pamr)
> data(khan)
> khan.train <- pamr.train(khan)
Error in 1:ncol(data$x) : argument of length 0

Anyone know what is the cause of this error?

A pointer to any useful (& working) tutorial about PAMR will be also very helpful.

pamr r software-error

1 answer

Note that that tutorial is really old. The khan dataset isn't in a form that's directly usable by pamr.train(). Just have a read through the vignette for how it actually works these days.

Log in to answer this question.