SAS Nonlinear Regression Procedure – PROC NLIN & PROC TRANSREG
Stay updated with the latest technology trends while you're on the move - Join DataFlair's Telegram Channel
We looked at different types of analysis for SAS/STAT and the procedures used for performing it in our previous SAS/STAT tutorial. Today, we will be looking at another type of analysis, called SAS Nonlinear regression and how can we use Nonlinear regression in SAS/STAT. Our focus here will be to understand the PROC NLIN and PROC TRANSREG that can be used for SAS Nonlinear regression with the example.
So, let’s start with SAS Nonlinear Regression.
2. What is SAS Nonlinear Regression?
SAS Nonlinear regression is a form of regression analysis in which data is fit to a model and then expressed as a mathematical function. Regression analysis is the study of the relationship between variables. The SAS Nonlinear Regression implies curved relationships.
In this, the dependent or criterion variables are modeled as a non-linear function of model parameters and one or more independent variables. The reason that these models are called nonlinear regression is that the relationships between the dependent and independent parameters are not linear.
Let’s Discuss Features of SAS/STAT in detail
SAS non-linear regression fitted curve looks like the one shown below-
3. Nonlinear Regression Procedures in SAS
Following procedures use to compute SAS nonlinear regression of a sample data. Let us explore it.
Read about 8 Procedures for Calculating Analysis of Variance in SAS/STAT
a. PROC NLIN
The NLIN procedure in SAS/STAT is used for fitting nonlinear regression models. In this, it estimates the parameters by using the method of nonlinear least squares or weighted nonlinear least squares. The NLIN procedure is specially used for segmented models.
The NLIN procedure uses the following four algorithms (methods):
- steepest-descent or gradient method
- Newton method
- Modified Gauss-Newton method
- Marquardt method
These can be specified in the METHOD= option.
A Syntax of PROC NLIN-
PROC NLIN DATASET; PARMS < VARIABLES>; MODEL DEPENDENT =EXPRESSION;
The PROC NLIN, PARAMETERS, and MODEL statements are required.
Let’s Know about Different Categorical Data Analysis Procedure
PROC NLIN Example-
proc nlin data=sashelp.cars method=gauss; parms hosepower=135 cylinders=6; model mpg_highway = (horsepower/cylinders); run;
The DATA=option specifies that the SAS data set sashelp.cars are used in the analysis.
The METHOD=option directs PROC NLIN to use the GAUSS iterative method.
The PARMS statement declares the parameters and specifies their initial values.
b. PROC TRANSREG
We have already discussed this procedure in detail. You can refer to the SAS Market Research tutorial for the complete tutorial.
So, this was all about SAS Nonlinear Regression Tutorial. Hope you like our explanation.
Hence, this was a complete description and a comprehensive understanding of the NLIN procedure offered by SAS/STAT nonlinear regression. Hope you all enjoyed it. Stay tuned for more interesting topics in SAS/ STAT. Furthermore, for any query, post your doubts in the comment section below.
Related Topic- Group Sequential Design and Analysis