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
Interactions with geographic variables to avoid loosing observations in a comparative analysisHi! I'm analyzing the association of different economic variables with the subjective well-being of…
Coding variables with options "Yes" "No" and "Other"Hello all, I have what I believe should be a pretty simple problem but I'm getting tripped up, most…
How can I test the meditation effect for count models (i.e. poisson, negative binomial)Dear statisticians, I want to test whether a variable M plays a mediating role in the effect of X o…
Regression Discontinuity - manipulation test applying fweights problemDear Stata Users, I am trying to test for sorting of individuals across the threshold in an RD sett…
Help with pcspike to display a paired plot with namesI am using Nick Cox's example code to produce a 'paired plot with names' as in Dr. Cox's "Speaking S…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Name Using Replace
Post a Comment