Hello,
Starting a new thread since I finally need something different from what I had before.
How can I drop observations of the nace_r2 in the set below?
I am trying, this code right here but it says the type is missmatched.
drop if nace_r2 == "B" | "B06" | "B051" | "B052" | "B06" | "B061" | "B062" | "B07" | "B071" | "B072" | "B08" | "B081" | "B089" | "B0891" | "B0892" | "B0893" | "B0899" | "B09"
Thanks!
* Example generated by -dataex-. To install: ssc install dataex
clear
input int time str2 geo str7 nace_r2
2007 "BE" "B"
2007 "BE" "B05"
2007 "BE" "B051"
2007 "BE" "B052"
2007 "BE" "B06"
2007 "BE" "B061"
2007 "BE" "B062"
2007 "BE" "B07"
2007 "BE" "B071"
2007 "BE" "B072"
2007 "BE" "B08"
2007 "BE" "B081"
2007 "BE" "B089"
2007 "BE" "B0891"
2007 "BE" "B0892"
2007 "BE" "B0893"
2007 "BE" "B0899"
2007 "BE" "B09"
Related Posts with Type missmatch, dropping string observations from a Variable
Error in multiple imputation with categorical repeated measuresHello, I'm trying to use multiple imputation with chained equations (N = 330, 6 time points). At ea…
Funnel plot with correlation coefficients as effect sizeHi, Can anybody help me draw funnel plots when effect sizes in my meta-analysis are correlation coef…
Diagnostic test using "roctab" commandDear All, Sub: Need a stata codes for sensitivity and specificity. I need to do the diagnostic test,…
r(2000) while calculating ratioDear All, I am trying to calculate the ratio of caesarean section rate in public versus private fac…
Dots on the resultsHello everybody, this is my first topic here, i am brazilian so sorry for my english.... Well, i am…
Subscribe to:
Post Comments (Atom)
0 Response to Type missmatch, dropping string observations from a Variable
Post a Comment