Hello,
I am quite new to stata so sorry if this has been answered before, but I could not find it via search!
I want to drop entries in my data set that are not from a specific country. So for example "keep if country == AT" (witthout the "") to make stata drop all Non Austrian entries. However, I cannot get stata to do this command. Neither by putting "" or '' around the AT will change that. I have tested the keep if X == Y with other numeric variables and it works as it should. How do I get it to work with non-numeric variables then?
Related Posts with Does Keep command work with non numeric variables?
specification error in panel dataHello, I am running a panel regression (xtreg) on an unbalanced dataset with large N, small T. I wa…
LoopDear All, I have a variable, say country, which contains the name of countries in my dataset and I …
Which types of analysis? (continuous DV ranging from 0 to 1)Hi, My dependent variable is score, continuous variable ranging from 0 to 1 (e.g., 0.1, 0.23, 0.34)…
Graph formatting for Forrest plotsI have generated a meta-analysis forrest plot using metaprop by subgroup (ie presented 2 subanalyses…
Generate new variable in panel data on the condition that another variable is contained within a list.New to this forum, so sorry for the wordy title. I have 9 waves of individual level panel data on d…
Subscribe to:
Post Comments (Atom)
0 Response to Does Keep command work with non numeric variables?
Post a Comment