How to make summary statistics table in Stata
HTML-код
- Опубликовано: 2 май 2022
- Stata script for making summary statistics table. Other topics included: importing data from Excel, forval and foreach loops, word count, return list, creating matrices and outputting to Excel.
Хобби
Thank you so much for this video
Hi, thank you for the helpful video. How would you add a column for the differences in variables between group 1 and 2? And show whether these differences are significant?
Goood video but you have not explained how the rown macro is used to write row names.
You used --> local rown = "`rown' + `var''" without defining what value rown holds the first time it is encoutered in the code.
For the first time it is empty and then subsequently will add each `var' as it iterates through meaning in the end it is a list of all the variables. It may have been easier to use the original local `myvar' instead of doing this.