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
Drop observation if variables only contain specific values or missingHello, I have a panel dataset with an ID variable and flags for certain missing values, missing valu…
GSEM for the ordered dependent variable and endogeneityDear all, I am applying gsem to address the endogeneity using two different commands I found on Stat…
Estout: saving results with panel dataHi all, I'm running a regression on panel data, where I want the regression to be run separately on…
How to read the suest command resultsHi everyone, kindly I have a doubt about reading the results of suest command. I mean after running …
How to read the suest command resultsHi everyone, kindly I have a doubt about reading the results of suest command. I mean after running …
Subscribe to:
Post Comments (Atom)
0 Response to Type missmatch, dropping string observations from a Variable
Post a Comment