Docsity

Chapter 4 Homework problems, Exercises of Biostatistics

Toggle sidebar
bg1
Code for 5.1.2
Data NCGS;
Infile "H:\My SAS Files\BIOS6310\cholesterol.txt";
Input GROUP ID y1 y2 y3 y4 y5;
Run;
Proc Means Data = NCGS MEAN STD VAR;
Class GROUP;
Var y1 y2 y3 y4 y5;
Run;
Table for 5.1.2
Code for 5.1.3
Data NCGS1;
*Change the data from wide to long format;
set NCGS;
time = 0; t = 1; chol = y1; output;
time = 6; t = 2; chol = y2; output;
time = 12; t = 3; chol = y3; output;
time = 20; t = 4; chol = y4; output;
time = 24; t = 5; chol = y5; output;
drop y1 y2 y3 y4 y5;
run;
proc sort data=NCGS1;
by Group time;
run;
proc summary data = NCGS1;
by Group time;
var chol;
pf3
pf4
pf5

Partial preview of the text

Download Chapter 4 Homework problems and more Exercises Biostatistics in PDF only on Docsity!

Code for 5.1.

Data NCGS; Infile "H:\My SAS Files\BIOS6310\cholesterol.txt"; Input GROUP ID y1 y2 y3 y4 y5; Run ;

Proc Means Data = NCGS MEAN STD VAR; Class GROUP; Var y1 y2 y3 y4 y5; Run ;

Table for 5.1.

Code for 5.1.

Data NCGS1; *Change the data from wide to long format; set NCGS; time = 0 ; t = 1 ; chol = y1; output; time = 6 ; t = 2 ; chol = y2; output; time = 12 ; t = 3 ; chol = y3; output; time = 20 ; t = 4 ; chol = y4; output; time = 24 ; t = 5 ; chol = y5; output; drop y1 y2 y3 y4 y5; run ;

proc sort data=NCGS1; by Group time; run ; proc summary data = NCGS1; by Group time; var chol;

output out = means (drop = _:) mean = mean; run ; axis1 label= ('Month of Visit' h= 1 f=swiss); axis2 label= (a= 90 j=c h= 1.75 f=simplex 'Serum Cholesterol Level (mg/dL)'); symbol1 i = j value = W font = marker c = blue h = 1 line = 1 width = 3 ; symbol2 i = j value = W font = marker c = red h = 1 line = 3 width = 3 ; proc gplot data = means; plot mean * time = group/haxis=axis1 vaxis=axis2; format CHAR group; run ; quit ;

Graph for 5.1.

Analysis for 5.1.

The high dosage treatment group increases more drastically over the first three visits with the average of serum cholesterol reaching a peak at the fourth visit (256.8 mg/dL). The level drops slightly to 254.55 mg/dL at the 24 th^ month. The placebo group has a more linear trend than the high dosage group with its peak average during the fourth visit also (257.6 mg/dL). This average drops by .12 mg/dL at the 24th^ month. While the placebo treatment group has a more constant growth, both groups have the same trend of peaking during the 4th^ visit and then dropping off

run ;

Table for 5.1.

Analysis for 5.1.

Y = B 1 + B 2 X 2 + B 3 X 3 + B 4 X 4 + B 5 X 5 + B 6 X 6 + B 7 X 2 *X 3 + B 8 X 2 *X 4 + B 9 X 2 *X 5

+ B 10 X 2 *X 6

E(Y) = 235.93 - 9.9107X 2 + 7.2439X 3 + 8.8483X 4 + 23.1028X 5 +

21.1238X 6 + 12.2722X 2 *X 3 + 16.4175X 2 *X 4 + 4.977X 2 *X 5 + 6.9031X 2 *X 6

Analysis for 5.1.

The weight matrix L helps test for equality of change from baseline to the average response at the second occasion through n in the two groups. Parameters: n=

L 1 = (-1, 1/(n-1), 1/(n-1), …., 1/(n-1))

L 1 = (-1, ¼, ¼, ¼, ¼)

L = (-L 1 , L 1 )

L = (1, - ¼, -¼, -¼, -¼ ), -1, ¼, ¼, ¼, ¼)

Analysis for 5.1.

Inputting the correct numbers in for Xi in the equation in 5.1.7 produces the information below regarding time-specific means.

E(Y) = 235.93 - 9.9107X 2 + 7.2439X 3 + 8.8483X 4 + 23.1028X 5 + 21.1238X 6 + 12.2722X 2 *X 3 + 16.4175X 2 *X 4 + 4.977X 2 *X 5 + 6.9031X 2 *X 6

High Dosage Group (mg/dL) Placebo Group Estimated Means Estimated Means

BL: 226.0193 235.

Mo6: 245.5354 243.

Mo12: 251.2851 244.

Mo20: 254.0991 259.

Mo24: 254.0462 257.

The time-specific means are almost exactly like the sample means and follow the same pattern also. The only means that differs slightly are the peak values for both treatment groups, and they are only off by roughly 2 mg/dL.

Analysis for 5.1.