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 with eventddHi all, First of all, here are my data: Code: input float(count_appr_compbased time_to_treat) lon…
impulse response functions modificationsHello, I was wondering if there is a way to modify the impulse magnitude in the impulse response fuc…
Type mismatchI keep getting a 'type mismatch' error and I'm stumped. All feedback would be greatly appreciated! …
Kaplan Meyer CurveHello, I am working on a survival analysis paper and one of the reviewers has asked me to add censor…
Xtset for Same "Stage" but Different TimeDear all, I have a company dataset. Each company has two-stage (e.g., stage = 0 or stage =1). Howev…
Subscribe to:
Post Comments (Atom)
0 Response to Type missmatch, dropping string observations from a Variable
Post a Comment