[R] Error in Penalized Command

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Oct 7 18:51:53 CEST 2011



On 07.10.2011 05:50, Cheryl Johnson wrote:
> How do I fix this error in the penalized command?
>
> L<-penalized(y,x,lambda1=10)

Assuming this is the function penalized of the penalized package 
(unstated): The lengths of your x and y differ.

Uwe Ligges



> Error in .checkinput(match.call(), parent.frame()) :
>    the length of "response" (200000) does not match the row count of
> "penalized" (1000)
>
> Thanks!
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.



More information about the R-help mailing list