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?
Granger-causality testHello Is it possible to perform a Granger-causality test including an instrumental variable using pa…
Comparing regression coefficients across groups in presence of fixed effects with suestHi all, I am trying to run regressions with a building by month panel. Each building have a unique b…
Stata margins command (atmeans) for one standard deviation changeHi everyone, I am currently writing my Bachelor thesis and need some help with the margins command.…
Controlling the space occupied by a axis labelsHi all, I am trying to create a panel graph of two histograms and a scatter using graph combine. T…
Generate dates that correspond to the 1st Tuesday of each monthHi, The Australian RBA meets the first Tuesday of each month 11 times a year (every months but Janu…
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