[R] glmpath error

Tirthadeep sabya231 at gmail.com
Wed Sep 19 13:46:20 CEST 2007


Then what is the solution?




Duncan Murdoch-2 wrote:
> 
> Tirthadeep wrote:
>> Hi,
>>
>> I am using glampath package for L1 regularized logistic regression. I got
>> the following error messege.
>>
>>   
>>> model.fit <- glmpath(train.data[,1:20], train.data$RES, family=binomial)
>>>     
>> Error in one %*% x : requires numeric matrix/vector arguments
>>
>> where train.data is a 700X21 matrix and 21st column in response (RES).
>>   
> If it is a matrix, then train.data$RES won't work.  That column 
> selection method only works for data frames,
> because they are lists, and matrices aren't.
> 
> Duncan Murdoch
>> Please clarify!!!
>>
>> Thanks
>>
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/glmpath-error-tf4480056.html#a12775820
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list