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
Drop rows of PUBID Observations based on conditionDear all, I am using Stata 16, on mac and have provided a sample of my dataset using dataex. I am …
Loop to copy all filesHi, i tried to do a loop to copy all my databases in the same file but i've got a problem. So i wan…
Bootstrapping timeHello I drew a SEM with SEM builder in STATA v.16. After that, I run Bootstrapping 5,000 but it too…
extracting days and dates out of database Code: * Example generated by -dataex-. To install: ssc install dataex clear input long date double(…
tobit with vce (cluster clustervar) or xttobitDear all, I'm working with a unbalanced panel data set with 208500 observations from 3371 firms in …
Subscribe to:
Post Comments (Atom)
0 Response to type mismatch error when trying to change value of cell
Post a Comment