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?
-atmeans- option with marginsMy question is about best practices while computing marginal effects. When should the option -atmean…
Flipping tables using eststo.Hi, I have a question concerning the construction of tables using eststo and esttab and posting them…
Mixed model interaction command reports error in Mac version of stataHi, this is my first time posting. I have been using stata for sometime now and had no problem in ru…
how to run a quantile regression for estimating panel data models using instrumental variable?Hi I am working on an economic problem using the quantile regression model of panel data. I need to …
Cumulative returns for 1, 2, and 3 year periods using monthly price dataHi all, Could you please advise me how to generate cumulative returns for 1-, 2-, 3-year periods us…
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