Hi! I have a dataset including ppl's information in the group of family (each observation has a pid variable for family id) and I want to drop all familie if there is no teenages in that family (var age<=18). in that family. Should I use for each and loop, if then how? Thx!
Related Posts with How to generate a value for groups of distinct value of a variable and then drop subgroups based on the value generated?
Creating an IF or Conditional commandHi All, It is my first time in this forum and I'm hoping you will be able to assist me. My study i…
Interpretation of a linear (percentage) - log regression modelTo provide context, I am running a fixed effects regression model, assessing the relationship betwee…
Lee bounds with multiple treatment groupHi, I'm working with a dataset with high attrition rate and am considering using Lee bounds to esti…
Renaming every 3 variableHi, I am trying to rename every three variable in my dataset such that the first three variable X1 X…
Merge Panel Data with multiple same year datasetHi All, I am trying to merge two datasets. One is a firm ID -year (panel master data). The other da…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate a value for groups of distinct value of a variable and then drop subgroups based on the value generated?
Post a Comment