Please assist with creating a proc reg and proc glm for the data below. I have the proc reg statement; however I am unable to produce an output. Can anyone explain what I am missing? My goal is to: 1.Add a proc reg to your program to produce a regression with the two indicator variables. 2.Add a proc glm to your program that produces the ANOVA output using fertilizer as the class variable. 3. Compare both. * create the dataset "herbs"; data herbs; *input the variables, weight is the dry weight in grams, the fertilizer is A,B,or C; input weight fertilizer$; *use if then statements to create indicator variables; if fertilizer='A' then A=1;else A=0; if fertilizer='B' then B=1; else B=0; *bring in the data through datalines; datalines; 16.2 A 20.3 A 24.4 A 21.2 A 20.9 A 14.2 A 23.1 B 25.1 B 27.5 B 27.2 B 31.9 B 27.5 B 19.6 C 23.0 C 15.8 C 28.3 C 18.0 C 17.1 C ; *print the dataset herbs to confirm that the varaibles were read in correctly; proc print data=herbs; run; proc reg; model weight=fertilizer$; run;
... View more