Hello Sir,
This is my first post here I want to drop the variables Based on the country names and I have tried using the command
"drop if ccode !=Hungary & ccode !=India & ccode !=United States & ccode !=Albania"
As I wanted to drop all the country's except this stata gave an error that "Hungary Not Found" (r111) Can Someone Please Help me out in this case the type of the Variable country name (ccode) is Long Type.
Thanks a lot !
Array
Related Posts with How to drop Variables Based on Country Name ?
merging multiple files in a folderHi, I am merging multiple files in a folder, using the code below. the master file (named PED_DAY_A…
replace with multiple if statementHello everyone, I am trying to replace values of the variable "NomenCode" based on multiple if state…
how to drop a bar like this , thanks!How to drop a bar like this ,thanks very much! * Example generated by -dataex-. To install: ssc ins…
xtreg vs xtpoisson difference in observationsHello all, I have a dataset of 4789 observations (unbalanced 194 groups and 25 years) . The way thi…
Difference-in-difference with three time periodsHi statalist, I’m running a difference in difference model with time fixed effects. My sample inclu…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop Variables Based on Country Name ?
Post a Comment