## Lecture: LASSO Regression
## Assigned Reading- Purpose of LASSO regression Slides►
- Clusters of COVID-19 symptoms: Application of LASSO regression (use instructor's last name as password) Read►
- What to do about a negative McFadden R-squared? ChatGPT►
- Tutorial on LASSO regression Python► R► You Tube►
- Clusters of COVID-19 symptoms: Application of LASSO regression (use instructor's last name as password) Read►
## Assignment
Resources for Question 1: - Prepare the data by setting variables that are present to 1 and absent to 0. When the COVID-19 test result is missing, drop the case from the analysis. When a symptom is missing, replace it with its mode, almost always 0. Data►
- 30 subset of IDs Data Subset►
- Data pre-processing Python►
- Main effect model Python►
- How to include interaction terms in Python ChatGPT►
- Symptom cluster model Python►
- Dr Vang's code Python►
- Chris Naso's Teach One Slides► Python►
Resources for Question 2: - COVID-19 test results and symptoms Data►
- Count of number of times symptoms occur together for the same person Data►
- Percent of times symptom listed in the row occurs before the symptom listed in the column Data►
- Python code for repeated LASSO regressions, in order of variables' time of occurrence Python►
- Jieun Jan's Teach One SQL►
- Tejaswi Pulusu's Teach One Slides►
- For patients taking Bupropion, what are the 5 most important features that increase symptom remission? Ask ChatGPT if a person with these features should take Bupropion? Report the difference between the regression and the advice of ChatGPT.
- For patients taking Bupropion, what are the 5 least important features that can be used to rule out the use of Bupriorin?
- In comparing Bupropion and Citalopram, what are the features that affect both medications? If the first 3 digits of the International Classification of Disease codes are the same, consider them the same feature.
- Suppose we can ask about the features listed in the two regressions. In what order, question should be asked, if we want to differentiate among the two medications with least amount of queries? List the first 10 questions that are most likely to resolve the need to take one of the two medications.
Here are resources for Q3: - For regression coefficients look at the sheet "Rem Coef" Download►
- How to code response to 3c in Python ChatGPT►
- Nishita's Teach One Slides►
Here are resources for question 4: - All of US Web►
## More- Graphical LASSO PubMed►
- Time varying graphical LASSO YouTube►
- Graphical LASSO more accurate than logistic regression PubMed►
This page is part of the course on Comparative Effectiveness by Farrokh Alemi, PhD Home► Email► |