14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4 Performing Bivariate <strong>Analysis</strong> 101<br />

Fit Line <strong>and</strong> Fit Polynomial<br />

Table 4.4 Description of the Summary of Fit Report (Continued)<br />

RSquare Adj<br />

Root Mean Square Error<br />

Mean of Response<br />

Observations<br />

Adjusts the Rsquare value to make it more comparable over models with<br />

different numbers of parameters by using the degrees of freedom in its<br />

computation.<br />

See “Statistical Details for the Summary of Fit Report” on page 125.<br />

Estimates the st<strong>and</strong>ard deviation of the r<strong>and</strong>om error. It is the square root of<br />

the mean square for Error in the <strong>Analysis</strong> of Variance report. See Figure 4.12.<br />

Provides the sample mean (arithmetic average) of the response variable. This<br />

is the predicted response when no model effects are specified.<br />

Provides the number of observations used to estimate the fit. If there is a<br />

weight variable, this is the sum of the weights.<br />

Lack of Fit Report<br />

Note: The Lack of Fit report appears only if there are multiple rows that have the same x value.<br />

Using the Lack of Fit report, you can estimate the error, regardless of whether you have the right form of the<br />

model. This occurs when multiple observations occur at the same x value. The error that you measure for<br />

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

predicted no matter what form of model is used. However, a lack of fit test might not be of much use if it<br />

has only a few degrees of freedom for it (few replicated x values).<br />

Figure 4.11 Examples of Lack of Fit Reports for Linear <strong>and</strong> Polynomial Fits<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 the pure error if you have the wrong functional form of the<br />

regressor. In that case, you should try a different type of model fit. The Lack of Fit report tests whether the<br />

lack of fit error is zero.<br />

Table 4.5 Description of the Lack of Fit Report<br />

Source<br />

The three sources of variation: Lack of Fit, Pure Error, <strong>and</strong> Total Error.

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

Saved successfully!

Ooh no, something went wrong!