SASUnit Examples  Version 1.5.0
regression.sas File Reference

Linear regression analysis - example for SASUnit. More...

Go to the source code of this file.

Detailed Description

Linear regression analysis - example for SASUnit.

Calculate a simple linear regression with intercept for the two variables specified and

  • write input data and estimated values to the output dataset &out
  • write regression parameters to output dataset &parms
  • generate a report in RTF format containing a plot of predicted and observed values

This example contains no validation of macro parameters

Version
$Revision: 315 $
Author
$Author: klandwich $
Date
$Date: 2014-02-28 10:25:18 +0100 (Fr, 28 Feb 2014) $
See Also
For further information please refer to SASUnit User's Guide
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/example/saspgm/regression.sas $
Parameters
datainput dataset
xvariable for x axis, must be numeric
yvariable for y axis, must be numeric
outoutput dataset, contains variables &x, &y and &yhat
yhatname of the variable with estimated values
parmsoutput dataset with regression parameters
reportreport file (file extension must be .rtf)

Definition in file regression.sas.