Dear All,
I am having trouble with a command in Stata and no matter how much I researched beforehand, I could not find a solution. I have a dataset that contains cross sectional data. There are around 1500 variables, where many of them contain from observation 1 to observation 29000 the value -1, i.e. ''missing''. I am trying to create a command that tells Stata that if a variable has only the value -1 from the first observation until the last one, then it should drop this variable and this should be done for all the variables that have this problem. Does anyone know how to proceed?
I thank you all for your time and your opinion.
Best.
Lola
Related Posts with Dropping many variables if all observations contain a certain text
Quantile regressionHello! I know this might not be stata related but I need help interpreting my results. I performed …
Squared TermsDear Statalist members, I have a panel dataset where my dependent variable is a dummy = 1 if the cl…
Stata 17 do-editor inconsistent behaviorDear All, I've just received Stata 17 and noticed the following inconsistent indication in the do-e…
How to create a new ordered variable using two variables that measure education level of individualI have two variables, educgb1 and edubgb2 that measure the level of education of an individual as se…
STATA Command and form of data for logistic regression using Panel DataHi, I have little experience with logistic regression on panel data and would like to know which ST…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping many variables if all observations contain a certain text
Post a Comment