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.
import multiple .csv into StataI have 20 .csv files which are 2001.csv 2002.csv...... 2020.csv, and I intend to import them into St…
Hospital Based Data CodeHello, I am using 10 yrs of hospital based data where people are admitted more than once within the…
Panel Data in StataHello! For my panel data in STATA I am using a set of 6 countries for a time period of 20 years. I a…
Help with collapsing dataGood day, I have the following data. Code: * Example generated by -dataex-. To install: ssc instal…
ereturn post a vector as a pseudovariable like e(sample)Dear Statalist, I would like to define an e-class program but have no idea how to -ereturn- a pseud…
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