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)
How do I change the format of date variable in STATA 15Hi, Is there a way I can change the following variables into a singular format? I have 900+ observa…
Generate moving sum of 24 variables in dataset with > 800,000 observationsDear Statalist, I’ve got a dataset with >850,000 observations of individuals with 132 dummy vari…
DistributionI am trying to create two distributions like those attached. can someone help with the code to creat…
95% confidence interval with invlogitGreetings, I'm having a problem analysing my dataset. I'm trying to get the prevalence and 95% CI us…
Understanding Logit and Probit outputI am currently running Stata14 to analyse a dataset of 228 observations. The dependent variable is b…
Subscribe to:
Post Comments (Atom)
0 Response to repeated time values within panel r(451)
Post a Comment