Hi all,
Just a very simple question and command yet I can't figure out why it is not working.
I just downloaded a dataset on all company's in the North-American market. Now I simply want to get rid of the American companies to see whether all cross-listed companies have a foreign primary issue tag. Therefore, as a first command (after clear all, cd and sysuse) I run:
drop if fic==USA
And then it says:
USA not found
It does not work for any of the -fic- or -tic- commands, but if I for instance do the command:
drop if fyear==2002
Then it does drop the years 2002
How is this possible and how can I resolve this? Thanks in advance for your help.
Related Posts with Drop if - variable not found
Interpreting time-varying coefficients in a fixed effects regression using SEM (as in xtdpml)I've estimated a fixed effects model within a structural equation modeling (SEM) framework, inspired…
Qqvalue: q-values the same as p-valuesHello, I am using Stata 15.1. I ran a GLM in svy, and then used parmest to generate an output datas…
Beta regressionsHi, How do I generate and report R or adjusted -R squared information from Beta regressions (betare…
Difference between interaction term or subgroup analysis when introducing control variablesHi everybody I have a question. I am looking into the difference between public and outsourced empl…
Populating month level data from annual level data for the same observationsI have a dataset which has both month level data and annual level data over a period of 10 years for…
Subscribe to:
Post Comments (Atom)
0 Response to Drop if - variable not found
Post a Comment