Hello,
I was trying to replace the value of some variables. My code is:
replace a867_2900 = 375000 * 0.110132 if a867_2900 == 3
replace a867_2900 = 450000 * 0.110132 if a867_2900 == 4
The second line worked successfully, and it showed "(1,005 real changes made)". But for the first line, it showed, "375000 invalid name r(198)".
Does anyone know what's the problem?
Thank you!
Related Posts with Invalid Name Using Replace
predicted valueWhat is the predicted blood pressure for an average 13-year-old boy as estimated from the regression…
"Equation not found" - Hurdle model using suestHi there, I am using Stata 15. I am trying to estimate the marginal effects for a logit-truncated n…
Modifying labels when appending datasetsI am appending datasets in which the same variable have different label values. In the example below…
How can I efficiently generate many dummy variables from substrings? (other than one by one using regexm)Excuse my terrible title, I struggled to communicate what I wanted to do in a concise way. I am wor…
regression line confidence intervalPlease how do i provide a 95% confidence interval for the parameters of the regression line in stata…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Name Using Replace
Post a Comment