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
binary choice model after collapseis it possible to use binary choice models to predict pr(y|x) after collapsing the data by group? …
list if conditionsI used the following code to list the observations in a variable if the binary "check" is 0. But in …
Table command in stata 16 does not allow statistic optionHello there, I am running a 3-way table using table command. I tried to add statistic and no totals…
Why many commands do not work?Hello dear stata community I am kind of new to stata but I have been facing issues with many command…
Manually calculating IV standard errors and getting STATA to use them in the regression tableI found the following script from one of the other threads to be helpful in calculating IV standard …
Subscribe to:
Post Comments (Atom)
0 Response to type mismatch error when trying to change value of cell
Post a Comment