The script begins by creating an internal dataset named 'contrived' via a DATA step and datalines. Then, it uses PROC NLIN to fit a nonlinear regression model to the data, specifying the 'alpha' and 'gamma' parameters and the model form. The ODS GRAPHICS option is enabled to produce standardized diagnostic plots, such as bias and Hougaard plots, as well as fit measures.
Data Analysis
Type : CREATION_INTERNE
The 'contrived' dataset is created directly within the SAS script via a DATA step and the DATALINES statement, incorporating the necessary input data for nonlinear regression analysis.
1 Code Block
DATA STEP Data
Explanation : This DATA STEP block creates the 'contrived' dataset using the INPUT statement to define variables x1, x2, and y, and the DATALINES statement to provide observations directly in the script. This dataset is then used as input for the nonlinear regression analysis.
Explanation : This block uses PROC NLIN to perform nonlinear regression on the 'contrived' dataset. The 'alpha' and 'gamma' parameters are initialized. The model specifies the nonlinear relationship between the dependent variable y and the independent variables x1 and x2. The ODS GRAPHICS option is enabled to generate diagnostic plots such as bias and Hougaard plots, providing a visual assessment of the model's fit.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.