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
Anybody looking for a research assistant?My daughter, a college freshman, is interested in paid or volunteer work, preferably with people who…
Create four-year average dataHello I would like to create a panel data that contains four-year averages accross each variables i…
Options parsing in syntaxDear All, consider the following example code: Code: clear all version 16.0 program define foobar …
Interpreting ratio dependent variableDear Statalists I'm having a bit of trouble interpreting the following output: Code: ------------…
Graph Twoway with Two Y-Axes: Fine Tuning FormattingI am using Stata 15.1. My data come from a clinical trial of two diets (coded 1 and 2). Various meas…
Subscribe to:
Post Comments (Atom)
0 Response to Drop if - variable not found
Post a Comment