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]

[no subject]



For your syntax to be valid, variables finaltwt1 and finalwt2 must exist in your data set. As
most survey data sets don't contain the weights for intermediate sampling stages, you'll have
to do your best to construct them yourself. 

Aside: you have been a member of the list long enough to know that Stata is not spelled "STATA".
 Also, to quote the FAQ: "Do not bundle very different questions in the same posting;
the odds are that some will get overlooked." From a user  point of view, the practice also leads
to very mixed up threads.

Regards,

Steve
sjsamuels@gmail.com



On Jun 14, 2012, at 11:58 AM, Rosie Chen wrote:

Dear all, I have two questions and would appreciate any advice.

(1) In Propensity score analysis, if I create histograms to check logit distributions by treatment status to look at the common support, I can look at one treatment at a time by using the following syntax: histogram logitfortreatment1,  by(treatmentcategory, col(1))

My question is: how can I add in the line indicating common support? Is there a way to do it in STATA? If not, how to do it manually?


(2) If I run a multilevel multinomial analysis in STATA, how to incorporate the weight variable for the first level of data? I used the syntax below, but got an error message saying that probability weight variables not found. Any advice? Thank you.

gllamm outcome X1 X2...., link (mlogit) fam(binom) i(schoolid) pweight(finalwgt)
trace
*probability weight variables not found


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