| HOME | HELP | FEEDBACK | SUBSCRIPTIONS | ARCHIVE | SEARCH | TABLE OF CONTENTS |
ERRATA |
Appendix A. Mplus syntax for a growth curve analysis with auxiliary variables.
data:
file is 'c:/qol.dat';
variable:
names are qol1 qol2 qol3 qol4 age ed tx;
usevariables are qol1 tx;
missing are all (99);
analysis:
type = missing h1;
model:
! basic growth model syntax;
i s | qol1@3 qol2@2 qol3@1 qol4@0;
[qol1 qol4@0];
[i s];
qol1 qol4;
i s;
i s on tx;
! auxiliary variables;
age ed;
age with ed;
age ed with tx;
age ed with qol1 qol4;
output:
sampstat standardized;
Appendix B. SAS multiple imputation syntax.
libname c 'c:/ ';
data c.qol;
infile 'c:/qol.dat';
input qol1 qol2 qol3 qol4 age ed tx;
/* CHANGE MISSING VALUE CODE FROM 9 TO. */
array x[7] qol1m qol2m qol3m qol4m age ed tx;
do i = 1 to 7;
if x [i] = 99 then x[i] = .;
end;
drop i;
run;
/* CREATE M = 10 IMPUTED DATA SETS */
/* NIMPUTE SPECIFIES THE NUMBER OF IMPUTED DATA SETS */
/* THE MINIMUM AND MAXIMUM OPTION PROVIDES RANGES FOR IMPUTED VALUES */
/* ROUND = 1 ROUNDS IMPUTED VALUES TO NEAREST INTEGER */
/* NBITER SPECIFIES THE NUMBER OF BURN IN ITERATIONS */
/* NITER SPECIFIES THE NUMBER OF BETWEEN- IMPUTATION CYCLES */
proc mi data = c.qol out = c.qolmi seed = 56789 nimpute = 10 minimum = 50 8 0 0 0 0 0 maximum = 99 30 1 100 100 100 round = 1 1 1 1 1 1 1;
var qol1 qol2 qol3 qol4 age ed tx;
mcmc nbiter = 500 niter = 200;
run;
Appendix C. Mplus syntax for a growth curve using multiply imputed data.
data:
file is 'c:/imputednames.dat';
type = imputation;
variable:
names are qol1 qol2 qol3 qol4 age ed tx;
usevariables are qol1 qol4 tx;
model:
! basic growth model syntax;
i s | qol1@3 qol2@2 qol3@1 qol4@0;
[qol1 qol4@0];
[i s];
qol1 qol4;
i s;
i s on tx;
| ||||||||||||||||||||||||||||||||||||||
| HOME | HELP | FEEDBACK | SUBSCRIPTIONS | ARCHIVE | SEARCH | TABLE OF CONTENTS |