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);
getting scatter and lfit to assign the same color for an observationHi All, I am using twoway to generate a scatterplot with an lfit overlay for several individual uni…
Separating big string variablesDear All, I have downloaded the dataset from the scimago journal ranking website. The downloaded da…
importing and appending loopsDear all, I tried appending some files using the following codes. Both worked but there are some pr…
Change labels form another datasetHi Stataitians. I'm new in Stata. I'm trying to change the label of several variables. I have the d…
How to get 95% Confidence Interval (CI) of the turning point of an inverted U-shaped curve with stata?Dear all, I have obtained an inverted U-shape relationship between independent variable X and depen…
Subscribe to:
Post Comments (Atom)
0 Response to invalid name error r(198);
Post a Comment