Dear Statalist friends,
I have been trying to use xtologit and complex weighting (or simpler weighting) in Stata 13 for a research project. Y is the dependent variable that has the value of 1 (unlikely), 2 (somewhat likely), and 3 (very likely) to denote a motivation to do something. I'd like to use difference-in-difference approach to examine if an event may change people's attitude/perception of doing something. The data structure (long form) is at the following:
After I sorted ID and Year, I ran the following codes (i.e., setting up the xtset capability and running the panel ordered logistic regression) as follows:
xtset ID Year
panel variable: ID (strongly balanced)
time variable: Year, 0 to 1
delta: 1 unit
svyset myPSU [pweight=myPweightVariable], strata(myStratumVariable)
svy: xtologit Y Year Treatment Y*Tx age gender x3 x4 ......
I got an error message as follows:
xtologit is not supported by svy with vce(linearized); see help svy estimation for a list of Stata
estimation commands that are supported by svy
r(322);
Can someone kindly resolve the above issue? How can I do a panel ordered logistic regression with simple or complex weighted settings? This issue has bothered me for a long time. I really want to find help to do a panel ordered logistic regression with simple or complex weights for this pre/post (2 time points) repeated measure design in Stata.
I've searched things online, however, I could not find the answers for my needs.
Thank you very much.
Best,
Jane
I have been trying to use xtologit and complex weighting (or simpler weighting) in Stata 13 for a research project. Y is the dependent variable that has the value of 1 (unlikely), 2 (somewhat likely), and 3 (very likely) to denote a motivation to do something. I'd like to use difference-in-difference approach to examine if an event may change people's attitude/perception of doing something. The data structure (long form) is at the following:
ID | Year | Treatment | Year * Treatment | Y | age | gender | x3 | x4 | ..... |
1 | 0 | 1 | 0 | 2 | 5 | 1 | |||
1 | 1 | 1 | 1 | 3 | 8 | 1 | |||
2 | 0 | 0 | 0 | 3 | 5 | 0 | |||
2 | 1 | 0 | 0 | 1 | 8 | 0 | |||
3 | 0 | 1 | 0 | 2 | 5 | 1 | |||
3 | 1 | 1 | 1 | 2 | 8 | 1 | |||
4 | 0 | 0 | 0 | 3 | 5 | 1 | |||
4 | 1 | 0 | 0 | 2 | 8 | 1 | |||
5 | 0 | 0 | 0 | 3 | 5 | 1 | |||
5 | 1 | 0 | 0 | 1 | 8 | 1 |
xtset ID Year
panel variable: ID (strongly balanced)
time variable: Year, 0 to 1
delta: 1 unit
svyset myPSU [pweight=myPweightVariable], strata(myStratumVariable)
svy: xtologit Y Year Treatment Y*Tx age gender x3 x4 ......
I got an error message as follows:
xtologit is not supported by svy with vce(linearized); see help svy estimation for a list of Stata
estimation commands that are supported by svy
r(322);
Can someone kindly resolve the above issue? How can I do a panel ordered logistic regression with simple or complex weighted settings? This issue has bothered me for a long time. I really want to find help to do a panel ordered logistic regression with simple or complex weights for this pre/post (2 time points) repeated measure design in Stata.
I've searched things online, however, I could not find the answers for my needs.
Thank you very much.
Best,
Jane
Comment