14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

62 Fitting St<strong>and</strong>ard Least Squares Models Chapter 3<br />

Regression Reports<br />

Table 3.6 Description of the Effect Tests Report<br />

Source<br />

Nparm<br />

DF<br />

Sum of Squares<br />

F Ratio<br />

Prob > F<br />

Mean Square<br />

Lists the names of the effects in the model.<br />

Shows the number of parameters associated with the effect. Continuous<br />

effects have one parameter. Nominal <strong>and</strong> Ordinal effects have one less<br />

parameter than the number of levels. Crossed effects multiply the number of<br />

parameters for each term.<br />

Shows the degrees of freedom for the effect test. Ordinarily Nparm <strong>and</strong> DF<br />

are the same. They are different if there are linear combinations found<br />

among the regressors so that an effect cannot be tested to its fullest extent.<br />

Sometimes the DF is zero, indicating that no part of the effect is testable.<br />

Whenever DF is less than Nparm, the note Lost DFs appears to the right of<br />

the line in the report.<br />

Lists the SS for the hypothesis that the listed effect is zero.<br />

Lists the F statistic for testing that the effect is zero. It is the ratio of the<br />

mean square for the effect divided by the mean square for error. The mean<br />

square for the effect is the sum of squares for the effect divided by its degrees<br />

of freedom.<br />

Lists the p-value for the Effect test.<br />

Only appears if you right-click in the report <strong>and</strong> select Columns > Mean<br />

Square.<br />

Shows the mean square for the effect, which is the SS divided by the DF.<br />

Lack of Fit<br />

The Lack of Fit report shows or hides a test assessing if the model has the appropriate effects. In the<br />

following situations, the Lack of Fit report does not appear:<br />

• There are no exactly replicated points with respect to the X data, <strong>and</strong> therefore there are no degrees of<br />

freedom for pure error.<br />

• The model is saturated, meaning that the model itself has a degree of freedom for each different x value.<br />

Therefore, there are no degrees of freedom for lack of fit.<br />

When observations are exact replicates of each other in terms of the X variables, you can estimate the error<br />

variance whether you have the right form of the model. The error that you can measure for these exact<br />

replicates is called pure error. This is the portion of the sample error that cannot be explained or predicted by<br />

the form that the model uses for the X variables. However, a lack of fit test is not very useful if it has only a<br />

few degrees of freedom (not many replicated x values).<br />

The difference between the residual error from the model <strong>and</strong> the pure error is called the lack of fit error. The<br />

lack of fit error can be significantly greater than pure error if you have the wrong functional form of a<br />

regressor, or if you do not have enough interaction effects in an analysis of variance model. In that case, you

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!