Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int totalR byte(sex AGEgroup gmfcs_cat deprivation_cat) float Epilepsy 59 1 3 1 . 1 57 1 4 1 1 0 75 1 2 1 2 1 72 1 1 1 2 0 64 2 3 1 2 0 85 1 2 1 1 1 61 2 1 . . 1 76 1 1 . 2 0 75 1 4 2 2 0 102 2 3 2 1 1 61 1 2 2 2 1 54 2 2 1 1 0 52 1 1 2 1 0 60 1 1 2 2 0 90 2 1 1 1 1 68 1 2 2 1 0 51 1 1 1 2 1 71 2 2 2 2 0 60 1 2 2 2 0 73 1 1 1 2 0 65 1 2 2 1 0 85 1 2 2 2 0 71 1 3 2 2 1 73 2 2 2 1 1 59 2 3 1 1 1 72 1 4 2 1 0 57 2 4 1 2 0 53 2 2 1 2 0 77 1 1 1 2 0 85 2 1 1 1 1 60 1 1 1 . 0 61 2 1 2 2 0 91 1 2 2 1 0 64 2 1 2 2 0 62 2 4 1 1 1 57 1 4 1 1 0 79 1 4 1 2 0 71 1 3 2 1 1 65 1 3 2 1 1 58 1 2 2 1 0 83 2 2 2 2 1 92 1 1 2 1 1 55 2 1 1 2 1 61 1 1 1 2 0 79 1 1 2 2 0 88 1 3 1 1 0 57 2 3 1 1 0 61 1 4 1 1 1 77 1 1 1 . 0 87 2 1 2 1 0 83 1 2 2 2 1 63 1 1 2 1 0 68 2 4 1 2 0 63 1 2 1 1 1 87 1 2 2 1 1 52 2 1 2 2 0 68 1 1 1 1 1 75 1 3 2 2 1 51 1 1 1 1 0 68 1 1 1 2 0 76 1 3 2 2 0 80 2 1 2 1 0 93 1 1 1 1 1 83 2 4 1 2 0 59 1 4 1 1 1 64 1 1 2 1 0 71 1 4 1 1 0 55 2 3 1 2 1 90 1 1 2 1 1 53 2 3 1 1 1 70 1 1 2 1 0 56 1 1 1 2 1 84 2 1 2 2 0 66 1 2 2 1 0 73 2 3 2 1 0 78 2 1 1 1 0 70 2 2 2 . 0 56 2 2 2 2 0 60 2 1 2 1 0 65 1 1 2 2 1 79 1 1 2 2 0 78 1 2 2 1 0 33 1 3 2 1 0 29 2 3 2 2 0 43 1 1 1 1 0 50 2 4 2 2 1 34 2 1 . 2 0 47 2 1 1 2 0 50 2 1 2 . 1 45 2 4 1 2 0 36 2 1 2 . 1 49 1 4 1 1 1 45 1 2 1 1 1 42 1 3 2 2 0 41 1 4 2 2 0 47 1 1 1 1 0 39 1 1 1 2 0 44 1 1 2 1 0 43 1 2 2 2 0 47 1 1 1 2 1 end
regress totalR i.sex, robust
regress totalR i.sex, i.AGEgroup, robust
regress totalR i.sex i.AGEgroup i.gmfcs_cat, robust
regress totalR i.sex i.AGEgroup i.gmfcs_cat i.deprivation_cat, robust
regress totalR i.sex i.AGEgroup i.gmfcs_cat i.deprivation_cat i.Epilepsy, robust
Many thanks for your guidance and apologies if this is a basic question.
0 Response to Controlling for variables in stata
Post a Comment