Good morning to everyone,
i was wondering if there is a command that tells Stata to drop variables if contains only missing values.
I have a database with numerous variables and I would like to delete the ones that are completely empty without having to check them one by one.
Many thanks in advance for your time.
Wishing you a happy weekend.
Related Posts with Data Setting: dropping empty variables in a quickly way
EVENTDD error message with cross section dataI'm working with BRFSS data and its a cross section data. Need to create event study analysis and I …
quesiton about Stata programDear all, I want to write a program to transform World Development Indicator(WDI) to panel data.Also…
Indicate loss of observations by variableDear Statalist Community, I am looking for a command that tells me how many observations are lost w…
Keep/drop command affects different data than replacethe sample produced by this code replace region =. if region==-1 drop if region==. sum if region ==…
How to create a graph like this in STATA?I am conducting an event study where I want to graph out cumulative abnormal returns surrounding the…
Subscribe to:
Post Comments (Atom)
0 Response to Data Setting: dropping empty variables in a quickly way
Post a Comment