差分

ナビゲーションに移動 検索に移動
|-
!summarize
|'''bysort sex: summarize(factorA)'''
[[file:summarize_factorA_bysort_sex.jpg]]
|}
|-
!tabulate
|'''tabulate factorA sex, by(factorA)'''
[[file:tabulate_factorA_sex.jpg]]
|-
|-
!summarize
|'''bysort factorA: summarize(sex)'''
[[file:summarize_sex_bysort_factorA.jpg]]
|}
|-
!summarize
|'''bysort disease: summarize(data1)'''
[[file:summarize_data1_bysort_disease.jpg]]
|}
|-
!rowspan="3"|table
|'''table sex factorA, statistic(percent)'''[[file:table_sex_factorA_statistic(percent).jpg]]
|This calculates proportions of cells compared to the whole<br> without showing raw values
|-
|'''table sex factorA, statistic(percent, across(sex))'''[[file:table_sex_factorA_statistic(percent_across(sex)).jpg]]
|This calculates proportions in column (longitudinal) directions<br> without showing raw values
|-
|'''tale sex factorA, statistic(percent, across(factorA))'''[[file:table_sex_factorA_statistic(percent_across(factorA)).jpg]]
|This calculates proportions in row (transverse) directions<br> without showing raw values
|-
!rowspan="2"|tabulate
|'''tabulate sex factorA, column'''[[file:tabulate_sex_factorA_column.jpg]]
|This calculates proportions in column (longitudinal) directions
|-
|'''tabulate sex factorA, row'''[[file:tabulate_sex_factorA_row.jpg]]
|This calculates proportions in row (transverse) directions
|}
|-
!rowspan="3"|tabstat
|'''tabstat factorA factorB factorC, by(disease)'''[[File:tabstat_factorABC_by(disease).jpg]]
|
|-
|'''tabstat factorA factorB factorC, by(disease) statistic(sum)'''[[File:tabstat_factorABC_by(disease)_statistic(sum).jpg]]
|factorA,B,C are binary variables so summations of values provide the positivities of factorA,B,C
|-
|'''tabstat factorA factorB factorC, by(disease) statistic(n)'''[[File:tabstat_factorABC_by(disease)_statistic(n).jpg]]
|''statistic(n)'' (''statistic(count)'' is the same) only counts observations with real values, which only tell non-missing observations
|}
|-
!rowspan="3"|tabstat
|'''tabstat factorA factorB factorC, by(SES)'''[[File:tabstat_factorABC_by(SES).jpg]]
|
|-
|'''tabstat factorA factorB factorC, by(SES) statistic(sum)'''[[File:tabstat_factorABC_by(SES)_statistic(sum).jpg]]
|factorA,B,C are binary variables so summations of values provide the positivities of factorA,B,C
|-
|'''tabstat factorA factorB factorC, by(SES) statistic(n)'''[[File:tabstat_factorABC_by(SES)_statistic(n).jpg]]
|''statistic(n)'' (''statistic(count)'' is the same) only counts observations with real values, which only tell non-missing observations
|}
|-
!tabulate
|'''tabulate disease SES, summarize(data1)'''[[File:tabulate_disease_SES_summarize(data1).jpg]]
|This tells means, SDs and frequencies of a continuous variable divided in two-way of binary/categorical variables
|}

案内メニュー