Hello this is my first post! I am using YTS data from the CDC ill put a link down below. I am currently trying to run fixed effect regression on my data but when I command: xtset Stateid YEAR I get the error r(451). from what I can tell its saying every time the state and year are the same its a repeated time value even though the data throughout the row is different. If someone knows the problem or how I can work around it would be great!
if you need any more details please let me know. Thank you!
What I am trying to do with stata
xtset Stateid YEAR
xtreg Data_Value policy Gender Education i.YEAR, fe robust
policy = LocationAbbr: "CA" "HI" when YEAR > 2015
preview of data as I currently have it
Array
Orginal Dataset:
https://chronicdata.cdc.gov/Survey-D...Data/4juz-x2tp
Related Posts with repeated time values within panel r(451)
Help with random uniform dataHi, I know that I can generate random uniform data by: gen variable = uniform() But now I want to…
Fixed Effects Model with time invariant (one-time thing) independent variableDear users, I am using National Longitudinal Survey of Youths (NLSY). My research question is: Doe…
Trend Analysis with Adjustment for CovariatesHi everyone, I would like to do a trend test with adjustment for covariates. But as far as I know, …
Collinearity issues with -areg- and not with -reghdfe-Hi Statalist. I am having trouble diagnosing a collinearity problem. Observations in my dataset are…
Interpreatation of regression and mean valueHello, my question is regarding regression and mean value. So one group of my dataset has better Pe…
Subscribe to:
Post Comments (Atom)
0 Response to repeated time values within panel r(451)
Post a Comment