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, statalist.org is already up and running.


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

st: ldecomp with weights and mi estimate


From   Lauren Beresford <lberesfo@hotmail.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: ldecomp with weights and mi estimate
Date   Thu, 15 Mar 2012 15:08:32 +0000

Dear Statalisters,

I am trying to use ldecomp to decompose direct and indirect effects on a mi svyset dataset. The syntax for ldecomp indicates I can use pweights (see  http://www.maartenbuis.nl/publications/ldecomp.pdf page 11), but I get error messages when I try to run the command with the weight options.  The command runs without the weight options.

mi estimate, cmdok: ldecomp mgr [pweight=wtsurvy], direct(female) indirect(hrswk) nobootstrap   macro e(cmd) is not setmatrix e(V) is not set

Am I doing something wrong, or is just not possible to use both weights and mi estimate with ldecomp?

Syntax:
ldecomp depvar [control_var1 [...]] [if] [in] [weight], direct(varname)               indirect(varlist) [at(control_var1 # [; control_var2 #] [...]) obspr               predpr predodds or rindirect normal range(# #) nip(#) interactions               nolegend nodecomp nobootstrap bootstrap_options]

Kind regards,Lauren Beresford
Doctoral CandidateUC Berkeley, Sociology 		 	   		  
*
*   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