Dear,
Greetings. I like to calculate mean of each quantile on each date and take the output into a format like excel because I need to process data further. I have used the following code
by mdate , sort : tabstat TotalReturnperShareasofMon , statistics( mean ) by(quant)
to get mean of each quantile on each date where mdate = monthly date, TotalReturnperShareasofMon is the variables which is to be averaged for each quant group. When I use the above command the output is generated in Results window and output is too large that it cannot be seen or handled efficiently. I shared a screenshot of my data in attachment. I would like to know what is the efficient way to calculate mean of each quantile on each date and get output in tabular format like:
mdate quant mean
Thank you very much! Array
Related Posts with Calculate mean of each quantile/decile and get output in excel format
How to keep first record but drop missing in longHI all, I have a dataset in long-format and would like to drop information so that I can just keep …
error using etpoissonHi, I was reviewing the example in the Treatment Effects user guide on page 68 where it uses the fo…
Coefficient of the interaction term of AFT modelDear Statalist, I have a question about the explanation of coefficients of interactions terms of the…
Omitted values while doing regression with fixed effectsStatalist forum, I am trying to do 4 regression models with fixed effects. However, when I run the …
Weighting European Social SurveyHello everyone, Does anyone here know when to use each weight in the European Social Survey? I'm us…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate mean of each quantile/decile and get output in excel format
Post a Comment