--- On Fri, 6/2/09, John Antonakis <[email protected]> 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/