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);
How to run marginal effect for multinomial probit in STATAMy dependent variable has four categories, including 1) working & studying; 2) working but not s…
What is the meaning of adding an non-binary interaction variable to a regression?When examining whether the impact of laws on Y differently in developed countries is to add an inter…
Question About Multilevel Model with Repeated DVs and Sample Weights (using MIXED command in STATA)Hi All I am conducting an MLM and am unsure if I have specified my analysis correctly and whether I…
How to do a histogram? - surveyHello, I have an example of the dataset below (survey). I would like to do a histogram with the ans…
How to detect sources of variations in coefficients obtained from a panel data regression?Is it possible to identify whether and how cross-sectional variation and/or time-series variation co…
Subscribe to:
Post Comments (Atom)
0 Response to invalid name error r(198);
Post a Comment