Dear statalist,
I have a dynamic panel for 20 years. However, data on one variable of interest is collected only among those new participants at the baseline interview. Now my question is: suppose I will use the value of the variable at the baseline as the reference, how can I spread the reference's values to other observations at different years. For example: Suppose my raw data looks like what present at the left panel. What code will help me make the final data look like what present at the right panel.
Thanks in advance!
Array
Related Posts with How to spread the reference's values to other observations at different years
stata programming combining 2 variablesLet me explain, what I want to do here. I have four variables of household id (ssuid), year, month a…
r603 using eventstudy commandDear Statalist, I am trying to run an event study using stata "db eventstudy" (eventstudy commandà …
how to represent estimates for covariates using MataI have a regression model using discrete time hazard regression. And I wanted to study the effect of…
Chi square goodness of fit I have performed chi square goodness of fit test as shown below. Now, I want to test which catego…
Count distinct values of variable 'Year' for each different id in variable 'Id'Dear Statalist users, this is my first post in the forum and I am a Stata beginner, so please forgi…
Subscribe to:
Post Comments (Atom)
0 Response to How to spread the reference's values to other observations at different years
Post a Comment