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
Are there user-written modules specifically based on Tukey's EDA techniques?Hello StataList, I am looking for user-written modules that address Exploratory Data Analysis strat…
Codebook within bys:?I usually use the command -codebook- to undertand the number of unique values of a given variable. I…
Logit model - sample size and clustering questionHello, I would like to check if there is a relationship between mothers' fertility and grandparenta…
Linear mixed models: random effects for both intercept and slope? lincom margins for continuous predictorsHi, I am a student, starting to deal with linear mixed models in STATA and your help would be extre…
Problems with articulating survey design for an appended dataset with differing numbers of replicate weightsHello, I am working with the 1996, 2000, 2004 and 2008 state-level waves of the Nursing Workforce S…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of a variable by multiple variables in the same table
Post a Comment