Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Pweight in GLLAMM


From   "Jin king" <[email protected]>
To   [email protected]
Subject   st: Pweight in GLLAMM
Date   Fri, 13 Apr 2007 03:27:12 +0000

Dear All,
I am trying to use GLLAMM to run a bivariate ordered probit model incorperating the sampling weight. But I failed. The STATA returns "weight variables wt2 not found".
Here is the code:

gen cons =1
collapse (sum) wt2=cons, by(yy1 yy2 gender education)
gen int pid = _n gen byte y1=yy1
gen byte y2=yy2
reshape long y, i(pid) j(eqdm)
tab eqdm, gen(d)

gen float x1gd = gender * d1
gen float x1ed =education* d1

gen float x2gd = gender * d2
gen float x2ed = education* d2

eq xx : d2 eq x1 : d1 - d2

gllamm y x1gd x1ed x2gd x2ed , trace i(pid) weight(wt2) family( binomial) l(oprobit) adapt thresh(xx) eqs(x1)

What is wrong?
Thanks
Li Yu

_________________________________________________________________
�����������ѽ��н�������ʹ�� MSN Messenger: http://messenger.msn.com/cn
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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