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
Scatter plot troubles! Hi! I'm trying to analyse some statistics and was having trouble figuring out why my scatter plots …
Stata 17 - bayesmh not replicating a simple example already done in Stata 15Dear Forum Members, I'm trying to replicate in Stata 17 this (quite simple) example from Stata Yout…
Marginal Effect of an Interaction Term after Logit (i.dummy#c.continous)Dear All, Here is my data. I am running a logit model and tried to get marginal effects. Here is m…
Generate a new variable as the mean of individuals over timeI have the following data set, a panel dataset, (it is an example of what I have, the data set is mu…
Generating four new variables out of one variable in a panel datasetHello, I'm trying to create four new variables in the following dataset: Code: input long pidp fl…
Subscribe to:
Post Comments (Atom)
0 Response to Type missmatch, dropping string observations from a Variable
Post a Comment