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 at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: mediation with a categorical mediator


From   John Antonakis <John.Antonakis@unil.ch>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: mediation with a categorical mediator
Date   Thu, 05 May 2011 23:06:43 +0200

Hi:

Instal -cmp- : ssc install cmp.

Here the code (just estimating any old thing) that does not make sense--though fem_work is binary):

webuse laborsup
cmp (kids = fem_work) (fem_work = fem_educ), ind($cmp_oprobit $cmp_probit) vce(robust)
nlcom [fem_work]fem_educ*[kids]fem_work

HTH,
John.

__________________________________________

Prof. John Antonakis
Faculty of Business and Economics
Department of Organizational Behavior
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis

Associate Editor
The Leadership Quarterly
__________________________________________


On 05.05.2011 21:55, Kate Welti wrote:
Hello,

How do I test for mediation in Stata when my mediator is a categorical
variable (type of child care used in the year prior to kindergarten).

Thanks,

Kate
*
*   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/


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