Hi,
I have 3 variables (var1 var2 var3) each with 5 categories (1, 2, 3, 4 & 5).
I would like to create a variable, var4, showing overall total counts of the observations in 1's, 2's, 3's, 4's and 5's combined.
so that command tab var4 will give 1 (being sum of, 1 of var1 + 1 of var2 + 1 of var3) and 2 (being sum of, 2 of var1 + 2 of var2 + 2 of var3)...
and at the end, the overall mean and standard deviation of var4.
Thank you in advance,
Immac
Related Posts with total
Bug in import sasStata Tech Support has verified that there is a bug in version 16.1 import sas. If a SAS dataset (sa…
Panel Data - Question about Stata CommandI have the following: * Define dependent variable y1, endogenous variable y2 * Define exogenous var…
Standard Error of Estimation in Panel Data RegressionHello, I am working on a panel data, N=600, T=10. After running the regression analysis, -xtreg, fe-…
Advice regarding Stata NetCourseHello, Hope you all are well and safe. I am looking to expand my knowledge in visualization using …
Power of sample for repeated measuresHi everyone! I have a data bank of a cross-sectional study where each person has tree measures (sam…
Subscribe to:
Post Comments (Atom)
0 Response to total
Post a Comment