J*****n 发帖数: 4859 | 1 When I used lars package, through the grammar in its documents:
data(diabetes)
par(mfrow=c(2,2))
attach(diabetes)
object <- lars(x,y)
I got following one.
Error in rep(1, n) : invalid 'times' argument
My R is the latest version.
Any suggestion?
Thank you. | d******e 发帖数: 7844 | 2 用glmnet吧,lars早都落伍了。
【在 J*****n 的大作中提到】 : When I used lars package, through the grammar in its documents: : data(diabetes) : par(mfrow=c(2,2)) : attach(diabetes) : object <- lars(x,y) : I got following one. : Error in rep(1, n) : invalid 'times' argument : My R is the latest version. : Any suggestion? : Thank you.
| l***a 发帖数: 12410 | 3 zkss?
【在 d******e 的大作中提到】 : 用glmnet吧,lars早都落伍了。
| J*****n 发帖数: 4859 | 4
3x
【在 d******e 的大作中提到】 : 用glmnet吧,lars早都落伍了。
|
|