Hi, I am college student from Barcelona. It is hard to learn Stata by myself because the teacher does not explain how to use commands, what they do... and we are in an introductory subject. The homework for this weekend uses a dataset with wage and some covariates, and we should use the lasso and ridge approach. He encouraged us to create as many variables as we can (I do not why, dummies, etc...). But he told that we should install (net install elasticregress, replace) and (ssc install lassopack, replace). I suppose that it install some new commands.
In the second question he says that we should use the commands rlasso and lassoregress. I do not know what is the difference between both commands, I could not fin it in Internet. Also I saw an extra command called lasso2. What they do? Thank you.
2) Use the lasso methods (rlasso, lassoregress and ridgeregress) to select the most relevant covariates for the analysis.
Related Posts with Lasso regress questions
fixed effects and and vce(robust) in poisson regressionHello everyone, I am aware that this is more of a statistical quuestino than a question on Stata but…
Format regression coefficients using file writeI am outputting non-standard tables to TeX and using file write following this example: https://gith…
Adding 4 arguments in setstars() of asdoc / asdocxI seem to experience an issue with the setstars() arguments using asdoc or asdocx. It seems that it …
long format data, creating a new variable (loop)Dear Statalist, I have data in long format with observation year: 2000 to 2019, n=125 000. I have a …
-putpdf- with -tempfile-Dear All, I am puzzled why the putpdf command requires the output file name to have specifically th…
Subscribe to:
Post Comments (Atom)
0 Response to Lasso regress questions
Post a Comment