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?
Encountering an error when using local macros in the xtqreg packageGood Evening, I am attempting to pass a varlist into a local macro as follows: Code: local predic…
Does STATA REG provide test statistic for Fitness of model and/or homogeneity of residuals and or misspecification?Hello everyone, Does STATA REG provide test statistic for Fitness of model and/or homogeneity of re…
Reshape problem: values of variable j not unique within idHi all, I am trying to generate Dummy variables from a question with multiple responses. Lamentably…
Simulations: Flat log likelihood encountered, cannot find uphill directionDear community, I am trying to see how many times using the Box-Jenkins methodology I select the cor…
How to plot overlaying normal distributionsHi all, I'm trying to do something for which I can't really find any previous posts. Basically, I w…
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