SRCware

69 views
Skip to first unread message

scott.raynaud

unread,
Jun 18, 2014, 2:55:18 PM6/18/14
to ive...@googlegroups.com
I used SRCware to create 10 imputations.  I accepted the default seed (2001).  Each imputation is the the same, i.e., all 10 are copies of each other.  It's as if they all used the same seed.  Is that the true behavior when specifying a seed?  Does one have to specify no seed (and use the internal clock) to have true perturbations among the imputations?  What if I want to have reproducible code that will replicate the imputations in the future-how do I specify the seed to do that?

Trivellore Raghunathan

unread,
Jun 18, 2014, 3:06:50 PM6/18/14
to ive...@googlegroups.com

How many iterations did you specify? A seed will give you the set of 10 imputations that can be reproduced. But the 10 imputations should differ not identical. Can you send me the script?

Raghu

On Jun 18, 2014 2:56 PM, "scott.raynaud" <scott....@cookchildrens.org> wrote:
I used SRCware to create 10 imputations.  I accepted the default seed (2001).  Each imputation is the the same, i.e., all 10 are copies of each other.  It's as if they all used the same seed.  Is that the true behavior when specifying a seed?  Does one have to specify no seed (and use the internal clock) to have true perturbations among the imputations?  What if I want to have reproducible code that will replicate the imputations in the future-how do I specify the seed to do that?

--
You received this message because you are subscribed to the Google Groups "IVEware" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iveware+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Raynaud

unread,
Jun 18, 2014, 3:18:21 PM6/18/14
to ive...@googlegroups.com

%impute(name=impute, setup=new);

datain NHIS_Combined317yrs_rev;

continuous PHSTAT boxcox_SRVY_YR boxcox_inciavg boxcox_poviavg boxcox_age_pshift boxcox_age_pshift2 boxcox_FM_SIZE boxcox_FM_SIZE2

boxcox_parentage boxcox_delta_pshift boxcox_delta_cshift boxcox_cohort ;

categorical csreltiv INTV_QRT SEX

PARENTS MOM_ED DAD_ED REGION STRATUM PSU ADD2 AMR2R AODD2 CCONDL01

CCONDL03 CCONDL04 CCONDL05 CCONDL6R CCONDL07 CCONDL08 CCONDL09 CCONDL10 CPOX

CASHMEV CASHYR HAYF2 RALLG2 DALLG2 SALLG2 DIARH2 ANEMIA2 FHEAD

EARINF2 SEIZE2 STUTTER CHSTATYR CVISION IHMOB IHMOBYR PROBRX

LEARND notcov parentmart quint1

quint2 quint3 quint4 apc_period lowbw race_rec apc_age apc_cohort ;

transfer RECTYPE SRVY_YR HHX FMX FPX CSRESPNO AGE_P AGE_P2 HISPAN_I MRACRPI2 FM_SIZE FM_SIZE2

WTFA_SC WTFA_SC3 IHSPEQ CUSUALPL CPLKIND CHCPLROU CHCPLKND CHCCHGYR CHCCHGHI CHCDLYR1 CHCDLYR2

CHCDLYR3 CHCDLYR4 CHCDLYR5 CHCAFYR1 CHCAFYR2 CHCAFYR3 CDNLONGR CHCSYR1 CHCSYR2

CHCSYR3 CHCSYR4 CHCSYR5 CHCSYR6 CHCSYR7 CHCSYR81 CHCSYR82 CHCSYR10 CHPXYR_C

CHERNOY2 CHCHYR CHCHMOYR CHCHNOY2 CSRGYR CMDLONGR HISPIMPT RACEIMP2 MRACBPI2

routflg chgflg phstat_rec1 phstat_rec2 CSTATFLG agedomain BWTGRM_P

BWTGRM2 parentage parentWTFA ASTATFLG parentHHX parentFMX parentPX inciavg poviavg wtcat id

age_pshift age_pshift2 cohort ie_age ie_period ie_cohort

delta_p delta_c delta_pshift delta_cshift lambda_SRVY_YR lambda_inciavg lambda_poviavg

lambda_age_pshift lambda_age_pshift2 lambda_FM_SIZE lambda_FM_SIZE2 lambda_parentage lambda_ie_age boxcox_ie_age lambda_ie_period boxcox_ie_period lambda_ie_cohort boxcox_ie_cohort lambda_delta_pshift

lambda_delta_cshift lambda_cohort lambda_CHCHMOYR boxcox_CHCHMOYR CHCHMOYRcat ;

ITERATIONS 20;

MULTIPLES 10;

SEED 2001;

run;

 

%PUTDATA(NAME= impute2, SETUP=new);

IMPUTATION impute;

MULT 2;

RUN;

 

%PUTDATA(NAME= impute3, SETUP=new);

IMPUTATION impute;

MULT 3;

RUN;

 

%PUTDATA(NAME= impute4, SETUP=new);

IMPUTATION impute;

MULT 4;

RUN;

 

%PUTDATA(NAME= impute5, SETUP=new);

IMPUTATION impute;

MULT 5;

RUN;

 

%PUTDATA(NAME= impute6, SETUP=new);

IMPUTATION impute;

MULT 6;

RUN;

 

%PUTDATA(NAME= impute7, SETUP=new);

IMPUTATION impute;

MULT 7;

RUN;

 

%PUTDATA(NAME= impute8, SETUP=new);

IMPUTATION impute;

MULT 8;

RUN;

 

%PUTDATA(NAME= impute9, SETUP=new);

IMPUTATION impute;

MULT 9;

RUN;

 

%PUTDATA(NAME= impute10, SETUP=new);

IMPUTATION impute;

MULT 10;

RUN;

scott.raynaud

unread,
Jun 18, 2014, 4:22:13 PM6/18/14
to ive...@googlegroups.com
I don't know if it makes any difference, but this run was on a 64 bit Windows Server 2012 machine.
Reply all
Reply to author
Forward
0 new messages