PAMR Error in 1:ncol(data$x) : argument of length 0
1
0
Entering edit mode
10.2 years ago
Sheila ▴ 280

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 • 3.6k views
ADD COMMENT
0
Entering edit mode
10.2 years ago

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.

ADD COMMENT

Login before adding your answer.

Traffic: 2363 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6