Hey Statalisters,
I am trying to drop all variables that have the expression "Domestic Currency" in their variable label.
I guess I have to combine foreach and strpos and local macros - but I can't figure out how.
Thank you so much!
Johannes
Related Posts with Drop variable if varlabel contains certain expression
Testing for heteroskedasticty using FE OLS and RE GLSHi everyone, I am currently trying to test for heteroskedasticity using an unbalanced panel and FE …
Linear regressionHi, I would really appreciate if someone could help me with this question. "Given the linear model, …
Time formatHello all, I have a dataset read in from Excel and I have a problem with the variable of the date. I…
How to tell Stata "end" if for the "program define" rather than the loop?In a loop syntax, I need to define a program and do some calculating, however, Stata breaked when en…
Generating predict after marginsHello, I would like to use margins in a similar way as we can use predict after regression (e.g. pr…
Subscribe to:
Post Comments (Atom)
0 Response to Drop variable if varlabel contains certain expression
Post a Comment