-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b4e2fe
commit 070d9df
Showing
7 changed files
with
169 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# chi_squared_test | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Chi-squared test for contingency tables | ||
Data: c161sex by e16sex (n = 900) | ||
χ² = 2.233, ϕ = 0.053, df = 1, p = 0.135 | ||
|
||
--- | ||
|
||
Code | ||
print(out) | ||
Output | ||
# Chi-squared test for contingency tables (weighted) | ||
Data: c161sex by e16sex (n = 904) | ||
χ² = 2.416, ϕ = 0.054, df = 1, p = 0.120 | ||
|
||
--- | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Chi-squared test for given probabilities | ||
Data: c161sex against probabilities 30% and 70% (n = 901) | ||
χ² = 16.162, פ = 0.088, df = 1, p < .001 | ||
|
||
--- | ||
|
||
Code | ||
print(out) | ||
Output | ||
# Chi-squared test for given probabilities (weighted) | ||
Data: c161sex against probabilities 30% and 70% (n = 906) | ||
χ² = 20.074, פ = 0.097, df = 1, p < .001 | ||
|
||
--- | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Chi-squared test for contingency tables | ||
(using McNemar's test for paired data) | ||
Data: survey_1 by survey_2 (n = 1000) | ||
χ² = 10.868, ϕ = 0.032, df = 1, p < .001 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# kruskal_wallis_test | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Kruskal-Wallis test | ||
Data: e17age by c172code (3 groups, n = 506, 180 and 156) | ||
χ² = 4.05, df = 2, p = 0.132 | ||
|
||
--- | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Kruskal-Wallis test | ||
Data: scale1 by scale2 (3 groups, n = 20, 20 and 20) | ||
χ² = 4.86, df = 2, p = 0.088 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# mann_whitney_test | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Mann-Whitney test | ||
Group 1: male (n = 294, rank mean = 147.50) | ||
Group 2: female (n = 596, rank mean = 298.50) | ||
Alternative hypothesis: true location shift is not equal to 0 | ||
W = 59684 , r = 0.26, Z = -7.75, p < .001 | ||
|
||
--- | ||
|
||
Code | ||
print(out1) | ||
Output | ||
# Mann-Whitney test | ||
Group 1: scale1 (n = 20, rank mean = 10.50) | ||
Group 2: scale2 (n = 20, rank mean = 10.50) | ||
Alternative hypothesis: true location shift is not equal to 0 | ||
W = 188 , r = 0.05, Z = -0.32, p = 0.758 | ||
|
||
--- | ||
|
||
Code | ||
print(out) | ||
Output | ||
# Mann-Whitney test (weighted) | ||
Group 1: male (n = 296, rank mean = 147.58) | ||
Group 2: female (n = 600, rank mean = 299.42) | ||
r = 0.26, Z = 7.78, p < .001 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters