11-14-2016 01:51 PM - last edited on 11-14-2016 02:53 PM by AnnaBrown
I have a problem with SAS code in Proc glm!
I want to test my residual normality but QQplot for all my response ariables are the same with the same mean and standard deviation, my main problem is with Proc univariate!
I will send you my code.
I would be thankful if you tell me what should I do with the code!
class Sex Type ;
model Staplelength=Sex Type /solution;
OUTPUT OUT=diagnost p=Ybar r=resid;
PROC pLOT data=diagnost;
PROC UNIVARIATE ;
Histogram resid/ normal;
11-14-2016 03:24 PM
If you want QQPlot and histogram of the residuals, you can get those plots directly from PROC GLM. For example, study the following code:
ods graphics on;
proc glm data=sashelp.cars plots=DiagnosticsPanel;
class Origin Type ;
model Length=Origin Type /solution;
I don't understand your statement "all my response variables are the same with the same mean and standard deviation." If the Staplelength variable is continuous, then your code should produce the plots that you expect. If not, I suggest you look at the data. For example, plot a histogram of Staplelength.