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 ?
egen newvar=group(varlist) does not generate a variable based on all unique combinations in the varlistI have been using egen newvar=group(varname1 varname2) for a while, with the understanding that newv…
zero-inflated (poisson) mediatorsHi, I am running a mediation which the mediator is zero-inflated poisson and the outcome variable is…
Looping through multiple strings for comparisonDear all, I would like to compare educational institutions of two workers and code a binary variabl…
Analysis of rotating panel design data in StataHello everyone, I have a 9-year rotating panel design in which every year, one-ninth of the sample i…
Missing deciles with Portfolio SortHi, I have the following problem. When using the fastxtile command to sort my values into deciles, …
Subscribe to:
Post Comments (Atom)
0 Response to How to drop Variables Based on Country Name ?
Post a Comment