I have a panel where each individual is recorded over three round - r3, r4, r5. If for instance, an individual has many variables with missing data in round 4 and 5, and I wish to drop these observations, how do I also drop the round 3 (without missing data) from the same individual.
I've done the following to delete those observations with missing data, but want to remove the observations for the other rounds when one round of an individuals's observations is removed by this command.
. . drop if agemon==.&zhfa==.&ppvt_raw==.&credit==.
(650 observations deleted)
Related Posts with Removing all observations for and individual in a panel when one year has missing values.
Alternative-specific constant equal to nest in nested logitDear all, I am using a nested logit model to analyze a discrete choice experiment. I have one nest …
Interaction in manual DIDHello, Im running a DID model( over two waves of a longitudinal survey) where the code that I use i…
Generate treatment variables for panel data analysisDear community, I am working on a panel data analysis, where I have to generate a treatment variabl…
How to use command cem to get the exact results from command kmatch?I want to compare whether the results of user-command Code: cem and Code: kmatch are the same. Ho…
Extracting First Character in a String that Satisfies a ConditionHello, My data contains in each row: (1) a string variable of different lengths ("String") (2) a n…
Subscribe to:
Post Comments (Atom)
0 Response to Removing all observations for and individual in a panel when one year has missing values.
Post a Comment