SASUnit Examples  Version 1.2.1
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: 106 $
Author
$Author: b-braun $
Date
$Date: 2013-01-10 14:59:21 +0100 (Do, 10 Jan 2013) $
See Also
$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.