Published on :
Statistical CREATION_INTERNE

Dose-Response Linear Regression Analysis

This code is also available in: Deutsch Español Français
Awaiting validation
This script creates an experimental dataset containing dose measurements and systolic (SBP) and diastolic (DBP) blood pressures. It then uses the REG procedure to linearly model the effect of the dose on these two types of pressure and generates residual plots for model diagnostics.
Data Analysis

Type : CREATION_INTERNE


Data is included directly in the code via the DATALINES statement.

1 Code Block
DATA STEP Data
Explanation :
Creation of the 'DOSE_RESPONSE' dataset with three numerical variables: dose, systolic blood pressure (SBP), and diastolic blood pressure (DBP).
Copied!
1DATA DOSE_RESPONSE;
2 INPUT DOSE SBP DBP;
3 
4DATALINES;
54 180 110
64 190 108
74 178 100
88 170 100
98 180 98
108 168 88
1116 160 80
1216 172 86
1316 170 86
1432 140 80
1532 130 72
1632 128 70
17;
2 Code Block
PROC REG
Explanation :
Execution of simple linear regressions to predict SBP and DBP as a function of the DOSE variable. Plots crossing the dependent variables and residuals versus the explanatory variable are produced to check model assumptions.
Copied!
1PROC REG;
2 title'Problem 5.8';
3 model SBP = DOSE;
4 plot (SBP residual.) * DOSE;
5 model DBP = DOSE;
6 plot (DBP residual.) * DOSE;
7QUIT;
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.