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?
Aggregating Data under serveral conditionsHej Statalist, I have a problem, as I want to aggregate my panel data under certrain conditions. I …
Create a variables based on consecutive years of observationDear Stata Users, Please, help me to resolve the following issue. Below is the sample of data that I…
showing different confidence levels for IRF & positive versus negative shocks (VAR analysis)Hi all I have two basic questions for a VAR analysis: 1- I am estimating a var and plotting the orth…
Weighted t testIs it possible to ttest a variable weighted by another variable in the dataset? So, to ttest the wei…
Creating a dummy variable for each observation separatelyHello, I have a nummeric variable which is represented in % and I need to recode this variable. To …
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