Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72758

LASSO (lars) analysis with first variable fixed.

$
0
0
Hi,

I have a quick question regarding the LASSO technique using the lars command in stata.
I am intereseted in the effect od education on health related quality of life. The variable Education_level is the first variable i want to include in my regression
When i use the lars method:

Code:
lars HRQoL Education_level smoking_behaviour extensive_drinker blood_pressure bmi_categories cancer COPD smoking_COPD diabetes blood_diabetes muskulo diabetes_muskulo age age2 gender marital_status, algorithm(lars)
I get an output where it says i should include Education_level at the 8th place (before muskulo and age for example.)
Is there a way to use the Lars method with education_level fixed as first added in the regression? I could not find anything like this on the web.

Thanks in advance!

Florian

Viewing all articles
Browse latest Browse all 72758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>