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
beginner's question Dear Stata users, I have a data set with 3 variables. These variables can take values "1-10". How …
Specify default for string argument to Stata -program-I'm writing a Stata program, but having trouble specifying a default value for the string argument m…
stata16.1 updateI updated my stata, but a new problem occurred. After I entered the "help" command in the command wi…
mediation analysis with multiple mediatorsDear Stata users, I am new to mediation analysis, so I am still learning but from what I read it se…
Margins after SEMHi, I am using SEM to estimate an autoregressive model: Code: sem (r9cesdnmv2 <- relwmo2v2c) …
Subscribe to:
Post Comments (Atom)
0 Response to type mismatch error when trying to change value of cell
Post a Comment