Hello everyone,
I am working with cohort data from a DSS. I have time-variant variants such as household or education (people can change were they live or their educational status with time). The database is structued in a way that I have several lines for each individual, with different entry and exit dates.
I want to create a variable capturing the "number of co-habitants" as a time-variant variable. This is not simple, as each individual in each household have different entry and exit dates. I want to caputure the number of co-habitants for each individuals in a time changing manner. Which code would you use?
Attached a simplified example of how the data could look like for one household:
Thank you very much in advance!!
Related Posts with Create a time-variant variable reflecting number of co-habitants
"intreg" and "cmp" give different results for interval regressionHello! I am trying to do an interval regression, because my outcome variable (wage) is measured in 9…
problem in a model because of collinear variables Hi I am estimating an environment kuznets curve, which generically can have the following specifica…
Measuring Cumulative Density/Area Under Kernel Density CurveThe objective of my analysis is calculate non-compliance to minimum wages at the industry-state-year…
Panel 2sls with multiple interations of endogeneous variablesI´m using Stata 14 with Windows 10 OS. I have 2 endogenous and 8 exogenous variables. I need to run…
Hansen TestIn Roodman's 2009 paper, he notes that a 'very low instrument count also weakens the Hansen test'. I…
Subscribe to:
Post Comments (Atom)
0 Response to Create a time-variant variable reflecting number of co-habitants
Post a Comment