How can I replace the missing data value with the existing repeated values by city!
clear
input int city double grp
1100 .
1100 .
1100 .
1100 .234
1100 .
1100 .234
1100 .
1230 .5
1230 .
1230 .
1230 .
1230 .5
1230 .
1323 .
1323 .
1323 .
1323 .3
1323 .
1323 .
1323 .3
1323 .
1323 .
1323 .
end
[/CODE]
Related Posts with How can I replace the missing data value with the existing repeated values by city
Interpreting a non-linear relationship with predicted values and margins plot I am trying to interpret a non-linear relationship in a fixed effects model. Attached is my Stata …
Calculation of standard errors after predictive margins: how are they computed?Hello, I'm struggling how standard errors after -margins- are calculated, e.g. after -logit-. I am …
ARDL lag coefficientsHi everyone or anyone who knows this better than me, I am trying to fit the following short-run equ…
jackknife loop with wrong number of observationsforvalues i = 1/139 { reg fawtd fdistockgdp if seqnum != `i', robust outreg2 using table, append e…
How to generate a new variable based on existing variablesDear Stata experts, I have a dataset like below. "tiea"=1 means in a given year the company has a c…
Subscribe to:
Post Comments (Atom)
0 Response to How can I replace the missing data value with the existing repeated values by city
Post a Comment