Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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 <>
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 wrote: -----
From: Richard Williams 
Sent by:
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
>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:  Richard.A.Williams.5@ND.Edu

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index