I am trying to change the value of a data cell with qualifiers, but I keep getting a type mismatch error. I have tried both the ways below thing maybe I could just change the string value then go back and change it to a float. Any ideas? as to how to not get an error?
replace tier2 = 1 if tier2 = "Tier 1"
type mismatch
r(109);
. replace tier2 = "1" if tier2 = "Tier 1"
type mismatch
r(109);
Related Posts with type mismatch error when trying to change value of cell
Is it possible to combine twoway binscatter?Is it possible to superimpose binscatter plot? I would usually do this with scatter in the followin…
Logistic regression diagnosticsHey everyone, I am currently running a logistic regression with several independent variables. As …
Conflicting results - xtsktest and jb -Hello everyone, I apologize in advance in case this is a silly questions but I could not find enligh…
ICD10 with multiple variablesHi, I am relatively new to Stata so apologies if this is a basic question but I hope someone can he…
Unifying country names when merging dataI have data from different sources, some use names for a country and other sources use different nam…
Subscribe to:
Post Comments (Atom)
0 Response to type mismatch error when trying to change value of cell
Post a Comment