本文主要鏈接:
1.不同條件下的方法選擇:https://stats.idre.ucla.edu/other/mult-pkg/whatstat/
Number of Dependent Variables | Nature of Independent Variables | Nature of Dependent Variable(s) | Test(s) | How to SAS | How to Stata | How to SPSS | How to R |
---|---|---|---|---|---|---|---|
1 | 0 IVs (1 population) | interval & normal | one-sample t-test | SAS | Stata | SPSS | R |
ordinal or interval | one-sample median | SAS | Stata | SPSS | R | ||
categorical (2 categories) | binomial test | SAS | Stata | SPSS | R | ||
categorical | Chi-square goodness-of-fit | SAS | Stata | SPSS | R | ||
1 IV with 2 levels (independent groups) | interval & normal | 2 independent sample t-test | SAS | Stata | SPSS | R | |
ordinal or interval | Wilcoxon-Mann Whitney test | SAS | Stata | SPSS | R | ||
categorical | Chi-square test | SAS | Stata | SPSS | R | ||
Fisher’s exact test | SAS | Stata | SPSS | R | |||
1 IV with 2 or more levels (independent groups) | interval & normal | one-way ANOVA | SAS | Stata | SPSS | R | |
ordinal or interval | Kruskal Wallis | SAS | Stata | SPSS | R | ||
categorical | Chi-square test | SAS | Stata | SPSS | R | ||
1 IV with 2 levels (dependent/matched groups) | interval & normal | paired t-test | SAS | Stata | SPSS | R | |
ordinal or interval | Wilcoxon signed ranks test | SAS | Stata | SPSS | R | ||
categorical | McNemar | SAS | Stata | SPSS | R | ||
1 IV with 2 or more levels (dependent/matched groups) | interval & normal | one-way repeated measures ANOVA | SAS | Stata | SPSS | R | |
ordinal or interval | Friedman test | SAS | Stata | SPSS | R | ||
categorical (2 categories) | repeated measures logistic regression | SAS | Stata | SPSS | R | ||
2 or more IVs (independent groups) | interval & normal | factorial ANOVA | SAS | Stata | SPSS | R | |
ordinal or interval | ordered logistic regression | SAS | Stata | SPSS | R | ||
categorical (2 categories) | factorial logistic regression | SAS | Stata | SPSS | R | ||
1 interval IV | interval & normal | correlation | SAS | Stata | SPSS | R | |
interval & normal | simple linear regression | SAS | Stata | SPSS | R | ||
ordinal or interval | non-parametric correlation | SAS | Stata | SPSS | R | ||
categorical | simple logistic regression | SAS | Stata | SPSS | R | ||
1 or more interval IVs and/or 1 or more categorical IVs | interval & normal | multiple regression | SAS | Stata | SPSS | R | |
analysis of covariance | SAS | Stata | SPSS | R | |||
categorical | multiple logistic regression | SAS | Stata | SPSS | R | ||
discriminant analysis | SAS | Stata | SPSS | R | |||
2+ | 1 IV with 2 or more levels (independent groups) | interval & normal | one-way MANOVA | SAS | Stata | SPSS | R |
2+ | interval & normal | multivariate multiple linear regression | SAS | Stata | SPSS | R | |
0 | interval & normal | factor analysis | SAS | Stata | SPSS | R | |
2 sets of 2+ | 0 | interval & normal | canonical correlation | SAS | Stata | SPSS | R |
- Friedman測試
- 條件:one within-subjects independent variable with two or more levels and a dependent variable that is not interval and normally distributed (but at least ordinal)
- 數據: the data need to be in a long format,各種條件不同列放置
- 表述:Friedman’s chi-square has a value of 0.645 and a p-value of 0.724 and is not statistically significant. Hence, there is no evidence that the distributions of the three types of scores are different.