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 to set up and run stcox stratified survival analyses on a limited time of the entire followup.Hi, I would like to study the effect of a heritable exposure (gene mutation) on two outcomes (a and…
Program for cross validation for regression discontinuity in time not runningDear All, To estimate a regression discontinuity in time model I want to use cross validation to de…
Winsorization of VariableDear All I want to ask a doubt which may sound very trivial, but I am unable to take a call. Suppose…
Latent Class Model on a Mixture-Amount Discrete Choice ExperimentHello I performed a discrete choice experiment which included 8 mixtures terms (the proportions of …
Determining lag length in a panel dataset.Hi all, I'm using -xtscc- command to estimate a macroeconomic mode. This dataset set has 133 countr…
Subscribe to:
Post Comments (Atom)
0 Response to repeated time values within panel r(451)
Post a Comment