Hi.
In my data there are 20 variables (var1- var20) which are deciles created based on different factors. So all variables var1 to var20 take values from 1 to 10.
I want to calculate the mean of another variable (let's call it height ) for each decile for each of the variables var1 to var20.
So in total i am looking at 20* 10 = 200 mean values of height. Want to create a large table with columns var1 to var20 and the means below.
How can one do it in STATA!
Thanks.
Related Posts with Mean of a variable by multiple variables in the same table
Cross-classified multi-level structure with longitudinal dataHi everyone, I'm using Stata version 15.1. I am trying to get the right syntax for a model. I tried…
value labelsHello everyone! Is there a way to merge value labels from a cvs file into a dataset in stata? the r…
Generating multiple of the same report, with different resultsMy goal is to create several PDF reports using the putpdf function. With the data I have right now, …
adding regional fixed effect to system GMMHello, I'm estimating a dynamic panel model using GMM system xtabond2. I've a general question. I mi…
Kaplan-Meier survival: reporting the number of patients at riskThe sts graph command comes with a handy risktable option that reports the number of patients at ris…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of a variable by multiple variables in the same table
Post a Comment