/COMMENT
This is file CANCER.BMD
for procedure LR.
This control file produces 3 logistic regressions: a
simple 2 variable regression with interaction, a
quadratic regression with interaction, and a
centered quadratic regression. Because procedure LR
is set up to do stepwise regression, we get it to do
a regular regression by putting all variables into
the regression (START=IN) and not allowing them
to move (MOVE=0).
/PROBLEM
title is 'Bone cancer logistic regression -- simple model'.
/INPUT
file is 'cancer.dat'.
variables are 4.
format is 'free'.
/VARIABLE
added are 1.
use = all.
names are C,V,F,SUBJ,VF.
/TRANSFORM
VF=V*F.
/REGRESS
depend is C.
interval = V, F, VF.
model = V, F, VF.
constant=in.
start=in,in,in.
move=0,0,0.
rule = none.
method = MLR.
/PRINT
plot.
cases = 0.
/PLOT
xvar=V,F.
yvar=stdresid,stdresid.
size is 60,20.
/END
/PROBLEM
title is 'Bone cancer logistic regression -- quadratic model'.
/INPUT
file is 'cancer.dat'.
variables are 4.
format is 'free'.
/VARIABLE
added are 3.
use = all.
names are C,V,F,SUBJ,VF,V2,F2.
/TRANSFORM
VF=V*F.
V2=V**2.
F2=F**2.
/REGRESS
depend is C.
interval = V, F, VF, V2, F2.
model = V, F, VF, V2, F2.
constant=in.
start=in,in,in,in,in.
move=0,0,0,0,0.
rule = none.
method = MLR.
/PRINT
plot.
cases = 0.
/PLOT
xvar=V,F.
yvar=stdresid,stdresid.
size is 60,20.
/END
/PROBLEM
title is 'Bone cancer logistic regression -- centered quadratic model'.
/INPUT
file is 'cancer.dat'.
variables are 4.
format is 'free'.
/VARIABLE
added are 5.
use = all.
names are C,V,F,SUBJ,Vc,Fc,VcFc,Vc2,Fc2.
/TRANSFORM
Vc=V-1.9318.
Fc=F-1.0682.
VcFc=Vc*Fc.
Vc2=Vc**2.
Fc2=Fc**2.
/REGRESS
depend is C.
interval = Vc, Fc, VcFc, Vc2, Fc2.
model = Vc, Fc, VcFc, Vc2, Fc2.
constant=in.
start=in,in,in,in,in.
move=0,0,0,0,0.
rule = none.
method = MLR.
/PRINT
plot.
cases = 0.
/PLOT
xvar=Vc,Fc.
yvar=stdresid,stdresid.
size is 60,20.
/END