Effects model development methods for statistical analysis

develop a main effects model n.w
1 / 25
Embed
Share

Explore the main effects model development through techniques such as throwing everything in, backward stepwise selection, forward stepwise selection, and all subsets selection. Understand the process of including and dropping variables based on statistical significance for a more refined model.

  • Statistical analysis
  • Effects model
  • Variable selection
  • Data modeling
  • Regression analysis

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Develop a main effects model.

  2. 1. Throw everything in. 2. Backward Stepwise. 3. Forward Stepwise. 4. All subsets.

  3. 1. Throw everything in. Include all candidates and drop if p value too large.

  4. %let target=chd; %let continuous=age pulse chol hematocrit fvcht sbp bmi; %let categorical=diab male mi_chol mi_hem currsmok; /*throw everything in*/ ods select parameterestimates globaltests; proc proc logistic logistic data=a.chd2018_a descending; /*since all categorical variables are 0,1 I don't need a class statement*/ model chd=&continuous &categorical; run run;

  5. Probably, Id also drop mi_hem, since the major reason for the missing indicators is scorability. I might also drop pulse for a couple of reasons (more later)

  6. /*drop hematocrit mi_chol mi_hem and re- run*/ %let target=chd; %let continuous=age pulse chol fvcht sbp bmi; %let categorical=diab male currsmok; /*throw everything in*/ ods select parameterestimates globaltests; proc proc logistic logistic data=a.chd2018_a descending; /*since all categorical variables are 0,1 I don't need a class statement*/ model chd=&continuous &categorical; run run;

  7. First Candidate Main Effects Model, based on throw everything in.

  8. Backward Stepwise selection

  9. %let target=chd; %let continuous=age pulse chol hematocrit fvcht sbp bmi; %let categorical=diab male mi_chol mi_hem currsmok; ods select parameterestimates; proc proc logistic logistic data=a.chd2018_a descending; model chd=&continuous &categorical/selection=backward; run run;

  10. Second candidate main effects model.

  11. Forward Stepwise Selection

  12. %let target=chd; %let continuous=age pulse chol hematocrit fvcht sbp bmi; %let categorical=diab male mi_chol mi_hem currsmok; ods select parameterestimates; proc proc logistic logistic data=a.chd2018_a descending; model chd=&continuous &categorical/selection=forward; run run;

  13. Third candidate main effects model.

  14. Compare forward and backward Backward Forward

  15. All subsets

  16. All subsets %let target=chd; %let continuous=age pulse chol hematocrit fvcht sbp bmi; %let categorical=diab male mi_chol mi_hem currsmok; proc proc logistic logistic data=a.chd2018_a descending; model chd=&continuous &categorical/selection=score; run run;

  17. Final candidate main effects model, first try %let target=chd; %let continuous_1=age pulse chol fvcht sbp bmi; %let categorical_1=diab male currsmok; proc proc logistic logistic data=a.chd2018_a descending; ods select parameterestimates; model chd=&continuous_1 &categorical_1; run run;

  18. A closer look. Negative Coefficient?

  19. Trivial Odds Ratio

  20. A logit plot %PlotLogits PlotLogits(indata=a.chd2018_a,numgrp=10 indepvar=pulse,depvar=chd); 10,

  21. A logit plot

  22. Final candidate main effects model %let target=chd; %let continuous_1=age chol fvcht sbp bmi; %let categorical_1=diab male currsmok; proc proc logistic logistic data=a.chd2018_a descending; ods select parameterestimates; model chd=&continuous_1 &categorical_1; run run;

  23. Final candidate main effects model

Related


More Related Content