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
Estimating coefficients separately by genderHi everyone, I am trying to estimate the effect of the mean establishment wage on a worker's future…
prtesti vs tabi for proportion comparisonHi all, I am trying to compare prevalence of obesity by gender in a cohort of 1499. he tab command g…
Creating a new variable by using a string variable in STATAFor example, X is a variable X 123 234 35 67 82 Now the values are saved as strings. If I want to cr…
significance of difference in coefficients of same regression modelHi, I am having a question regarding testing whether the difference of coefficients is significant.…
Used formatted variable to categorised new varHi all, I want to create a variable Timegroups which uses another variable Time to create categorie…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a Variable of Respondents Means
Post a Comment