Array
Hi,
I have a 2 year panel data, and I do not have stateside information for 2019. To match the states for both years, I run the following command:
bys id: gen st=state
bys id: replace st=state[_n+1] if year==2019
However, when I run the code, Stata replaces only 2 observations but not all. How can I fix my problem?
Thanks!
Related Posts with How can I replace missing state values on panel data?
Help in panel data analysisHello, I really request for your help in doing panel data analysis. My data is: DV (ROA) IV( interes…
CorrelationsHi people, For my Master's thesis, I need to include a correlation matrix table including the corre…
Weighted summary statistics and outreg2I've been unable to create a table that shows the weighted summary statistics of the variable travel…
Making regression tables of marginal effects of Sequential Logit modelDear all, I would like to know how to make regression tables of marginal effects of Sequential Logit…
Use of time dummies in fixed effects estimationDear all, I am writing my Master's thesis, where I am doing an FE estimation on the probability of …
Subscribe to:
Post Comments (Atom)
0 Response to How can I replace missing state values on panel data?
Post a Comment