Advertisement
alephnaught

Group Project models #1

Nov 25th, 2020
2,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 1.21 KB | None | 0 0
  1.  
  2. /*variables*/
  3. /*Population_2016 Total_justice_system_PC Police_Protection_PC Judicial_and_legal_PC Corrections_PC Total_justice_system_Employment police_protection_Total_Employment police_protection_Sworn_only_Employment Judicial_and_legal_Employment Corrections_Employment */
  4.  
  5. /*full model */
  6. proc reg data = work.mycsv;
  7. model population_2016 = Total_justice_system_PC Police_Protection_PC Judicial_and_legal_PC Corrections_PC Total_justice_system_Employment police_protection_Total_Employment police_protection_Sworn_only_Employment Judicial_and_legal_Employment Corrections_Employment;
  8. run;
  9.  
  10. /*total only model */
  11. proc reg data = work.mycsv;
  12. model population_2016 = Total_justice_system_PC Total_justice_system_Employment;
  13. run;
  14.  
  15. /*police only model (note 2 forms of employment measures) */
  16. proc reg data = work.mycsv;
  17. model population_2016 = Police_Protection_PC police_protection_Total_Employment police_protection_Sworn_only_Employment;
  18. run;
  19.  
  20. /*judicial only model*/
  21. proc reg data = work.mycsv;
  22. model population_2016 = Judicial_and_legal_PC Judicial_and_legal_Employment;
  23. run;
  24.  
  25. /*corrections only model*/
  26. proc reg data = work.mycsv;
  27. model population_2016 = Corrections_PC corrections_employment;
  28. run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement