我是该glmnet
软件包的新手,但仍不确定如何解释结果。谁能帮助我阅读以下跟踪图?
通过运行以下命令获得该图:
library(glmnet)
return <- matrix(ret.ff.zoo[which(index(ret.ff.zoo)==beta.df$date[2]), ])
data <- matrix(unlist(beta.df[which(beta.df$date==beta.df$date[2]), ][ ,-1]),
ncol=num.factors)
model <- cv.glmnet(data, return, standardize=TRUE)
op <- par(mfrow=c(1, 2))
plot(model$glmnet.fit, "norm", label=TRUE)
plot(model$glmnet.fit, "lambda", label=TRUE)
par(op)