Перейти к содержимому

Tables of descriptive statistics in Stata

StataCorp LLC

0:00 / 0:00

Tables of descriptive statistics in Stata

4 383 просмотра · 1 год назад
StataCorp LLC
95,2 тыс. подписчиков
4 383 просмотра · 1 год назад
This video demonstrates how to use the dtable command to create and customize a table of descriptive statistics. See the final commands below. webuse nhanes2l dtable age i.(sex race diabetes) weight height bmi, by(highbp, tests nototals) sample(, place(seplabels) ) continuous(age, statistics(mediqr) test(kwallis)) factor(, test(fisher)) define(mediqr = median iqr, delimiter("; ")) nformat(%2.0f mediqr) title(Table 1. Descriptive statistics by blood pressure status.) note(median; iqr) note(mean (sd)) export("table1", as(docx) replace) collect label levels highbp 0 " l.t.130/80 mmHg" 1 "130/80 mmHg+", modify collect style header highbp, title(hide) collect export "table1", as(pdf) replace https://www.stata.com