I'm new to SAS and I’m having difficulties asking for a random slope. If anybody has any insight, it would begreatly appreciated. (the first proc works, the second one does not) datasubtype; input y center study age race gender height weightcat; datalines; 0 1 1 44 3 1 161 4 1 1 1 61 3 1 137 1 1 1 1 63 2 0 194 4 0 1 1 71 3 1 153 4 0 2 1 66 3 1 198 3 1 2 1 36 2 1 166 4 1 2 1 32 2 0 121 3 1 2 1 45 2 1 128 2 1 3 1 32 2 1 104 1 1 3 1 54 1 0 135 3 0 3 1 47 2 1 106 1 1 3 1 34 3 0 104 2 0 4 2 40 2 0 114 3 0 4 2 60 3 0 183 2 0 4 2 79 2 1 177 2 0 4 2 62 2 0 197 1 1 5 2 58 1 0 189 2 1 5 2 48 1 1 157 4 0 5 2 43 2 1 162 3 0 5 2 68 3 0 135 2 0 6 2 69 2 1 115 3 1 6 2 42 3 0 165 3 0 6 2 30 1 0 150 3 0 6 2 50 1 1 157 2 0 7 3 42 3 0 176 1 0 7 3 31 3 0 183 3 0 7 3 75 1 1 147 2 0 7 3 53 1 0 160 3 1 8 3 45 1 0 100 2 1 8 3 74 2 0 127 4 1 8 3 63 3 1 143 4 1 8 3 64 1 1 131 2 1 9 3 56 1 0 107 2 1 9 3 78 2 1 195 2 0 9 3 35 3 0 182 2 1 9 3 47 1 0 123 3 ; proc glimmix; classcenter; modely = height / dist=bin link=logitsolution; randomintercept / type =un subject= center; random_residual_; run; proc glimmix; classcenter; modely = height / dist=bin link=logitsolution; randomintercept height / type =un subject= center; random_residual_; run;
... View more