Hi, I am trying to run a panel data regression for waves 4 and above from my dataset:
xtset pidp UKHLSwave
xtlogit lifesat unemployment outoflaborforce newduration newdursq10 married goodhealth age agesq10 loghhincome, if UKHLSwave >= 3
but get the error message:
if UKHLSwave >= 3 invalid
r(198);
I have recoded many of the variables prior to trying to execute this command (a lot of code so will not post here), but do not see how this could interfere with STATAs ability to identify the wave. I have checked and the UKHLSwave is identified by STATA as floating. What could be the issue here? And if there is an alternative way to run the regression for specified waves please do let me know!
Related Posts with specifying waves for xtlogit panel data regression
Counting distinct values cumulatively by groupDear Statalist, I have a question about constructing count variable. Please refer to my sample data…
Hausman vs Sargan-Hansen testI would like to test whether FE or RE model is more appropriate, however I suspect clustered errors …
Generating observations for a variable in an extension of dataI have extended a data set that previously included quarterly data from 2001Q1 (represented as eg yq…
Help using cond and collpase in a panel gravity modelDear all, I am a bit confused and I would be happy to get some suggestions. Here is the problem. I …
Generating new variables based on a variable naming conventionDear Statalist, I hope this finds you well - my first post so please be gentle. I regularly use dat…
Subscribe to:
Post Comments (Atom)
0 Response to specifying waves for xtlogit panel data regression
Post a Comment