(Sorry about the poor phrasing of the question)
My dataset contains variables such as country and prevalence of obesity, for 34 countries. I want to create a new value for country variable that will be the average of obesity of all the countries, i.e there will be 35 categories under the country variable. Is there any command to do that in Stata 14.
Related Posts with Creating a value that equals the average of other values for the same variable
Sharp RD estimation - "Mass points detected in the running variable." issue - 0 nb of observationsDear all, I am currently trying to use a Regression Discontinuity specification to try to estimate …
Poisson distributionHi, if I want to generate a distribution of Poisson probability with the λ per period starting from …
Missing yearly observation - Panel dataI've got panel data from 2009-2016. Some individuals don't have data for the entire period. ID year…
Can I use Kaplan-Meier estimator to predict duration of a treatment?Hi, I don't have much experience with STATA, and so I'm in need for some help. I have a dataset of a…
Can I use a multinomial logit regression analysis using cubic polynomial of time to control time dependence?If not, which method should I use to control time dependence? My dependent variable is categorial. T…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a value that equals the average of other values for the same variable
Post a Comment