I am currently trying to generate a new variable consisting of respondents means. This new variable consist of the mean of 3 distinct variables but whenever I try to establish the code, for instance gen BatteryMean= mean l2 l3 soc11, stata tells me that it doesn't recognize the term "mean". Is there a particular boolean code or anything of the like I'm not doing?
Related Posts with Generating a Variable of Respondents Means
Multivariate regression with Categorical variablesHi awesome people, I am working a multivariate regression consisting of a categorical (4 classes) i…
Options in a Panel data regression using Sergio Correia's ''reghdfe''Hello, I am currently working with a panel, using Correia's reghdfe command. Suppose I have a panel…
Sorting observations and keeping oneHi, I would like to ask again the same question for sorting the observations by descending orders a…
Fractional Polynomials - Code for Fp plotHi all, I am trying to understand the non-linear relationship of age in my model using fractional p…
RIDGEREG - Choosing K parameterHi Forum! I have to do ridge regression but I'm in trouble with the ridge parameter. I tried to comp…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a Variable of Respondents Means
Post a Comment