Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Allswell Akrong

Problem 5.8
data DOSE_RESPONSE;
INPUT DOSE SBP DBP;
DATALINES;
4 180 110
4 190 108
4 178 100
8 170 100
8 180 98
8 168 88
16 160 80
16 172 86
16 170 86
32 140 80
32 130 72
32 128 70
;
PROC REG DATA = dose_response;
MODEL SBP = DOSE;
RUN;
PROC REG DATA = dose_response;
MODEL DBP = DOSE;
RUN;

Allswell Akrong

SBP=189.76-1.72*DOSE

DBP=105.855-1.068*DOSE

Allswell Akrong
data DOSE_RESPONSE;
INPUT DOSE SBP DBP;
DATALINES;
4 180 110
4 190 108
4 178 100
8 170 100
8 180 98
8 168 88
16 160 80
16 172 86
16 170 86
32 140 80
32 130 72
32 128 70
;
PROC REG DATA = dose_response;
MODEL SBP = DOSE;
plot SBP * DOSE;
PLOT RESIDUAL. * DOSE;
RUN;
PROC REG DATA = dose_response;
MODEL DBP = DOSE;
plot DBP * DOSE;
PLOT RESIDUAL. * DOSE;
RUN;

Allswell Akrong

Allswell Akrong

Allswell Akrong
Problem 5.10
data DOSE_RESPONSE;
INPUT DOSE SBP DBP;
DOSELOG = LOG(DOSE);
DATALINES;
4 180 110
4 190 108
4 178 100
8 170 100
8 180 98
8 168 88
16 160 80
16 172 86
16 170 86
32 140 80
32 130 72
32 128 70
;
PROC REG DATA = dose_response;
MODEL SBP = DOSELOG;
plot SBP * DOSELOG;
PLOT RESIDUAL. * DOSELOG;
RUN;
PROC REG DATA = dose_response;
MODEL DBP = DOSELOG;
plot DBP * DOSELOG;
PLOT RESIDUAL. * DOSELOG;
RUN;

Allswell Akrong

SDP=218.2-22.409*DOSELOG

Allswell Akrong

DBP= 127.4-15.484*DOSELOG

Allswell Akrong

Allswell Akrong
The doselog fits better (linearly) for dbp compared to sbp. For, sbp the regular dose fits better than
doselog. For dbp, doselog fits better than regular dose.

Problem 3
data prob3;
infile "/home/allswell0/my_courses/alex3140/forbes.csv" dsd;
input obsnumber $ bp pres;
run;
proc print data=prob3;
run;
proc plot data=prob3;
plot pres*bp='x';
run;
proc reg data=prob3;
model pres=bp;
plot pres*bp;
run;

Allswell Akrong

PRES = -81.063 + .522 *BP

Allswell Akrong

You might also like