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
Improve regression interpretations with and without fixed effectsI have unbalanced panel data where 2213 companies from 32 different countries report several measure…
Propensity Score Matching (PSM) to match firms based on age, size and industryDear community, I have a data set of firms that went public via a SPAC merger (SPAC=1). Now I want …
item-rest correlation using Spearman?Hi, I'm wondering if there is a way to get item-rest correlation, as you get from the command alpha…
encoding a string variable with a delimiterHello Community, I've been struggling with this one. I have a dataset which is a questionnaire, in …
Creating a variable from a percentileDear Statalist Experts I hope you are well. I want to create a new variable "highVarA" that should …
Subscribe to:
Post Comments (Atom)
0 Response to Create a time-variant variable reflecting number of co-habitants
Post a Comment