Statalist


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

st: weights and ssm


From   Erica Ryu <[email protected]>
To   [email protected]
Subject   st: weights and ssm
Date   Mon, 19 Jan 2009 14:41:22 -0500

Hello,

I am trying to do a logit model with sample selection and am using the following command (since I cannot use the svy prefix with ssm, I use "if" and pweight):

ssm yvar x1 x2 x3 if prot==1 [pweight=pawt2], s(frd=participation rtrad_white ca_8 q7b) q(8) fam(bin) link (logit) sel

which then produces an "invalid" error message. I think there is something wrong with the way I included the pweight, because when I take out [pweight=pawt2], the model runs fine.

Please advise. Thank you!

Erica
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index