Statalist


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

Re: st: Fw: Multiple mediation


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Fw: Multiple mediation
Date   Fri, 6 Feb 2009 19:36:49 +0000 (GMT)

--- On Fri, 6/2/09, John Antonakis <John.Antonakis@unil.ch> wrote:
> Do you mean testnl, Maarten?

Yes, my bad.
 
> Also, could you just us how, specifically one would test
> for indirect effects in the context of reg3?

*------------------ begin example ----------------------
use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear
foreach var of varlist read ses write {
	sum `var' if !missing(read,ses,write)
	gen double z_`var' = (`var' - r(mean))/r(sd)
}
sureg (z_read z_ses) (z_write z_read z_ses)
testnl [z_read]z_ses*[z_write]z_read = 0
nlcom  [z_read]z_ses*[z_write]z_read
*--------------- end example ---------------------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

-- Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------





      

*
*   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   |   What's new   |   Site index