문제

I am using the glmnet package to get LASSO estimates, as follows:

model <- cv.glmnet(data, return, standardize = TRUE)

I am able to extract the coefficients using coef(model), however, I couldn't figure out a way of getting the standard error and Z-score for each variable.

도움이 되었습니까?

해결책

Since LASSO estimates are non-linear non-differentiable function of the response values, it is difficult to obtain an accurate estimate of their standard errors. The most common approach to derive the standard errors of LASSO estimates is to use bootstrapping the least squares fit standard errors.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top