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
How to estimate the risk difference with margins after meprobitDear Statalist, Happy new year! Here is my question: Code: clear set seed 2020 set obs 400 set …
Select US listed companies only (Compustat)Hi all, I would like to select only the firms (gvkey) in my dataset which are listed in the US (US …
Multiple imputation and multi-level data questionHello, I am looking for help with multiple imputation and multi-level data. At level 2 I only have …
Why does Stata allow a random effect without a level-1 effect?The command for an HLM model in Stata is: Code: mixed depvar indepvars . . . || levelvar: revars, …
Annualized Sharpe ratios and VolatilitiesGood morning, I have Monthly excess returns of two portfolios P1 and P8 over 29 years. For my maste…
Subscribe to:
Post Comments (Atom)
0 Response to specifying waves for xtlogit panel data regression
Post a Comment