Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: can I use binary_mediation on imputed data?
From
Francesca Pesola <[email protected]>
To
[email protected]
Subject
Re: st: can I use binary_mediation on imputed data?
Date
Fri, 9 Mar 2012 10:06:18 +0000
Hi Richard,
Thanks for your reply. As binary_mediation runs a series of regression plus it estimates the mediation direct and indirect effects, I used the -combine-catgegory.
mim2, category(combine) est(e(effect)): binary_mediation, dv(AUDIT_lowmed) mv(peers_antisocial_bi) iv(DEP14_bi)
However, this does not produce the expected output.
Also, when I include the bootstrap command:
mim2, category(combine) est(_b[_cons]) se(_se[_cons]): bootstrap r(indir_1) r(tot_ind) r(dir_eff) r(tot_eff), ///
reps(500): binary_mediation, dv(AUDIT_lowmed) mv(peers_antisocial_bi) iv(DEP14_bi)
I receive the following message which suggests that bootstrapping is not supported (?)
prefix bootstrap not allowed after mim
Grateful for any suggestion on how to best proceed.
Francesca
[email protected] wrote: -----
To: [email protected], [email protected]
From: Richard Williams
Sent by: [email protected]
Date: 03/09/2012 02:23AM
Subject: Re: st: can I use binary_mediation on imputed data?
At 05:00 AM 3/8/2012, Francesca Pesola wrote:
>I have imputed my dataset using the 'mi ice' command in Stata 11 and
>I would like to use the binary_mediation command with bootstrapping
>on my imputed dataset as all my variables are dichotomous.
>
>I used mim2: binary_mediation, dv () iv() mv()
>
>But I received the following message:
>
>command binary not recognised by mim; try specifying category option
>
>r(198);
>
>Is there any way I can do this? If not, are there any alternatives?
Like the message says, try using the -category- option of -mim2-. See
the -mim2- help.
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/