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.
• 3,945 views
•
link
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.
• 0 views
•
link
Log in to answer this question.