Drop Variables and Drop Observations Based on Conditions in Stata

Aug 5, 2023
publisher-openvideo

thedatahall.com

Verified Open.Video Creator Badge

We can use drop and keep commands to drop specific variables or keep certain variables. We can also use a wild card to drop similar kinds of variables or variables with similar names. We can also drop observations based on multiple conditions. We can drop or keep missing values in a variable. It can also be used to keep the highest or last value in a panel or the lowest / first value in a panel/group. 00:00 Intro to Drop / keep 1:25 Drop variable with the prefix 4:41 Drop values based on condition 7:43 Drop missing values 9:17 Drop values in a range 9:43 Keep first or last value in a panel 12:38 Drop all variables Website: thedatahall.com As an Amazon Associate, I earn from qualifying purchases.

#Data Management