Good afternoon guys,
I am very new at Stata and i was trying to learn a code below and it give me error saying " invalid name error r(198); "
can somebody explain me where the mistake is . thank you !
generate meanwage =.
forvalues j=34(1)46 {
summarize wage if age=='j'
replace meanwage=r(mean) if age=='j'
}
Related Posts with invalid name error r(198);
subset of local marcoDear all, I want to test the equality of coefficients in quantile regression model using loop. The c…
Estpost summarize yields wrong number of observationsHello all, I ran this simple command below to create a table of summary statistics. My data set has…
Problem of handling missing dataHi everyone, I am currently working on looking at the impact of intellectual property rights on the …
why I would have different number of cases between models with MI'd data (possibly because of collinear dependencies of one varaible)? Hi Statalist, I am running three logistic models with the same DV with Stata 12. Model 1 has all va…
Creating a string variable with multiple different word valuesHello, I am relatively new to STATA, with only a couple months experience and not much string exper…
Subscribe to:
Post Comments (Atom)
0 Response to invalid name error r(198);
Post a Comment