Re: [R] Quantiles on multiply imputed survey data - mitools

2016-05-11 Thread Anne Bichteler
Thanks so SO much. Brennan www.toxstrategies.com From: Anthony Damico Date: Wednesday, May 11, 2016 at 11:17 AM To: Anne Bichteler Cc: "r-help@r-project.org" Subject: Re: [R] Quantiles on multiply imputed survey data - mitools hi, you want se=T M_quantile <-

Re: [R] Quantiles on multiply imputed survey data - mitools

2016-05-11 Thread Anthony Damico
ta=imputationList(Imputed_list), nest=TRUE) > M_mean <- with(des_mult, svymean(make.formula(get('var_name' > summary(M_mean) > M_quantile <- with(des_mult, svyquantile(make.formula(get('var_name')), > quantiles = c(.5))) > summary(M_quantile) > > > Than

Re: [R] Quantiles on multiply imputed survey data - mitools

2016-05-11 Thread Anne Bichteler
n(make.formula(get('var_name' summary(M_mean) M_quantile <- with(des_mult, svyquantile(make.formula(get('var_name')), quantiles = c(.5))) summary(M_quantile) Thanks again, Brennan www.toxstrategies.com From: Anthony Damico Date: Tuesday, May 10, 2016 at 10:37

Re: [R] Quantiles on multiply imputed survey data - mitools

2016-05-10 Thread Anthony Damico
is the `with` not passing make.formula( get( 'var_name' ) ) through to svyquantile for some reason? does this work? MIcombine( with(des, svyquantile(~LBXTCD, .5))) if that's not it, could you make a minimal reproducible example that includes the data download? code to download and import nhane

[R] Quantiles on multiply imputed survey data - mitools

2016-05-10 Thread Anne Bichteler
Hello, and thank you for considering this question: The svystat object created with multiply imputed NHANES data files is failing on calling survey::svyquantile. I'm wondering if I'm diagnosing the issue correctly, whether the behavior is expected, and whether y'all might have any ideas for wor