Hi,
I would love some help!
I try to copy the personal tax in 2002 to all years.
My initial data looks like this:
Year ID Tax
2001 1 .
2002 1 0.2
2003 1 .
2001 2 .
2002 2 0.14
2003 2 .
2001 3 .
2002 3 0.25
2003 3 .
The prefered outcome looks like this:
Year ID Tax
2001 1 0.2
2002 1 0.2
2003 1 0.2
2001 2 0.14
2002 2 0.14
2003 2 0.14
2001 3 0.25
2002 3 0.25
2003 3 0.25
I really appreciate any help you can provide.
Thank you!
Related Posts with Copy variables (basic problems)
Nested loop to generate new variablesIs there some way I could use nested loop to recode the following, where one variable loops between …
Merge One Variable to Multiple Instances in Master DatasetHello,
I have a dataset in which multiple organizations can serve the same county. I have a crosswa…
Constraints with fmmI have a pretty basic mixture regression thus:
. fmm 2: regress y x1 x2, lcprob(x1)
What I would l…
Compressed and Out of Position Graph After Coefplot and grc1legHi,
I have used the coefplot command to plot coefficients from a series of event study regressions …
Generating dummy variables based on variables with multiple categoriesHi,
I have a (panel) dataset that contains the following variables for each observation: person_id …
Subscribe to:
Post Comments (Atom)
0 Response to Copy variables (basic problems)
Post a Comment