Hi everyone,
I am having difficulties wrapping my head around the following problem:
I have a panel data set with two rounds (year), household (hhid) and person (id) identifiers. the sample consists of children, and I want to only keep one girl and one boy (sex) per household, being as close to each other as possible by birth order (BH). As you can see, these are many specific restrictions, and I find it hard to get something out of it.
Any suggestions? Thanks a lot folks!
Best, Marco
Related Posts with Keeping specific observations within groups
Principal Component AnalysisHi I have a non Stata request. I have to use PCA to create an index for cities in my dataset using …
label value?Dear All, Is there any other way (say, one line command) to obtain `a' as below. Code: * Example ge…
Marginal Effects after GsemHello everyone I am running a multinomial logit model using gsem I tried finding marginal effect of …
Tests of Conditional Predictive Ability: Giacomini-White TestHello everyone, I need to perform Tests of Conditional Predictive Ability. I used dmariano command …
Issue with Importing the DataI am trying to import a dataset with almost 700,000 observations. One of the column consists of the …
Subscribe to:
Post Comments (Atom)
0 Response to Keeping specific observations within groups
Post a Comment