|
| 1 | +# output from independent sample t test is as expected when alternative is less |
| 2 | + |
| 3 | + Code |
| 4 | + ifr_ts_ind_ttest(hsb, female, write, alternative = "less") |
| 5 | + Output |
| 6 | + Group Statistics |
| 7 | + ----------------------------------------------------------------------------- |
| 8 | + Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] |
| 9 | + ----------------------------------------------------------------------------- |
| 10 | + 0 91 50.121 1.080 10.305 47.97539 52.26661 |
| 11 | + 1 109 54.991 0.779 8.134 53.44689 56.53511 |
| 12 | + ----------------------------------------------------------------------------- |
| 13 | + combined 200 52.775 0.67 9.479 51.45379 54.09621 |
| 14 | + ----------------------------------------------------------------------------- |
| 15 | + diff 200 -4.87 1.304 9.231 -7.42623 -2.31377 |
| 16 | + ----------------------------------------------------------------------------- |
| 17 | + |
| 18 | + Independent Samples Test |
| 19 | + ------------------------ |
| 20 | + |
| 21 | + Ho: mean(0) - mean(1) = diff = 0 |
| 22 | + Ha: diff < 0 |
| 23 | + |
| 24 | + --------------------------------------------------------------------- |
| 25 | + Variable Method Variances DF t Value P < t |
| 26 | + --------------------------------------------------------------------- |
| 27 | + write Pooled Equal 198 -3.7341 0.0001 |
| 28 | + write Satterthwaite Unequal 170 -3.6564 0.0002 |
| 29 | + --------------------------------------------------------------------- |
| 30 | + |
| 31 | + Test for Equality of Variances |
| 32 | + --------------------------------------------------------------- |
| 33 | + Variable Method Num DF Den DF F Value P > F |
| 34 | + --------------------------------------------------------------- |
| 35 | + write Folded F 90 108 1.605 0.0188 |
| 36 | + --------------------------------------------------------------- |
| 37 | + |
| 38 | +# output from independent sample t test is as expected when alternative is greater |
| 39 | + |
| 40 | + Code |
| 41 | + ifr_ts_ind_ttest(hsb, female, write, alternative = "greater") |
| 42 | + Output |
| 43 | + Group Statistics |
| 44 | + ----------------------------------------------------------------------------- |
| 45 | + Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] |
| 46 | + ----------------------------------------------------------------------------- |
| 47 | + 0 91 50.121 1.080 10.305 47.97539 52.26661 |
| 48 | + 1 109 54.991 0.779 8.134 53.44689 56.53511 |
| 49 | + ----------------------------------------------------------------------------- |
| 50 | + combined 200 52.775 0.67 9.479 51.45379 54.09621 |
| 51 | + ----------------------------------------------------------------------------- |
| 52 | + diff 200 -4.87 1.304 9.231 -7.42623 -2.31377 |
| 53 | + ----------------------------------------------------------------------------- |
| 54 | + |
| 55 | + Independent Samples Test |
| 56 | + ------------------------ |
| 57 | + |
| 58 | + Ho: mean(0) - mean(1) = diff = 0 |
| 59 | + Ha: diff > 0 |
| 60 | + |
| 61 | + --------------------------------------------------------------------- |
| 62 | + Variable Method Variances DF t Value P > t |
| 63 | + --------------------------------------------------------------------- |
| 64 | + write Pooled Equal 198 -3.7341 0.9999 |
| 65 | + write Satterthwaite Unequal 170 -3.6564 0.9998 |
| 66 | + --------------------------------------------------------------------- |
| 67 | + |
| 68 | + Test for Equality of Variances |
| 69 | + --------------------------------------------------------------- |
| 70 | + Variable Method Num DF Den DF F Value P > F |
| 71 | + --------------------------------------------------------------- |
| 72 | + write Folded F 90 108 1.605 0.0188 |
| 73 | + --------------------------------------------------------------- |
| 74 | + |
| 75 | +# output from independent sample t test is as expected when alternative is both |
| 76 | + |
| 77 | + Code |
| 78 | + ifr_ts_ind_ttest(hsb, female, write, alternative = "both") |
| 79 | + Output |
| 80 | + Group Statistics |
| 81 | + ----------------------------------------------------------------------------- |
| 82 | + Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] |
| 83 | + ----------------------------------------------------------------------------- |
| 84 | + 0 91 50.121 1.080 10.305 47.97539 52.26661 |
| 85 | + 1 109 54.991 0.779 8.134 53.44689 56.53511 |
| 86 | + ----------------------------------------------------------------------------- |
| 87 | + combined 200 52.775 0.67 9.479 51.45379 54.09621 |
| 88 | + ----------------------------------------------------------------------------- |
| 89 | + diff 200 -4.87 1.304 9.231 -7.42623 -2.31377 |
| 90 | + ----------------------------------------------------------------------------- |
| 91 | + |
| 92 | + Independent Samples Test |
| 93 | + ------------------------ |
| 94 | + |
| 95 | + Ho: mean(0) - mean(1) = diff = 0 |
| 96 | + Ha: diff ~= 0 |
| 97 | + |
| 98 | + --------------------------------------------------------------------- |
| 99 | + Variable Method Variances DF t Value P > |t| |
| 100 | + --------------------------------------------------------------------- |
| 101 | + write Pooled Equal 198 -3.7341 0.0002 |
| 102 | + write Satterthwaite Unequal 170 -3.6564 0.0003 |
| 103 | + --------------------------------------------------------------------- |
| 104 | + |
| 105 | + Test for Equality of Variances |
| 106 | + --------------------------------------------------------------- |
| 107 | + Variable Method Num DF Den DF F Value P > F |
| 108 | + --------------------------------------------------------------- |
| 109 | + write Folded F 90 108 1.605 0.0188 |
| 110 | + --------------------------------------------------------------- |
| 111 | + |
| 112 | +# output from independent sample t test is as expected when alternative is all |
| 113 | + |
| 114 | + Code |
| 115 | + ifr_ts_ind_ttest(hsb, female, write, alternative = "all") |
| 116 | + Output |
| 117 | + Group Statistics |
| 118 | + ----------------------------------------------------------------------------- |
| 119 | + Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] |
| 120 | + ----------------------------------------------------------------------------- |
| 121 | + 0 91 50.121 1.080 10.305 47.97539 52.26661 |
| 122 | + 1 109 54.991 0.779 8.134 53.44689 56.53511 |
| 123 | + ----------------------------------------------------------------------------- |
| 124 | + combined 200 52.775 0.67 9.479 51.45379 54.09621 |
| 125 | + ----------------------------------------------------------------------------- |
| 126 | + diff 200 -4.87 1.304 9.231 -7.42623 -2.31377 |
| 127 | + ----------------------------------------------------------------------------- |
| 128 | + |
| 129 | + Independent Samples Test |
| 130 | + ------------------------ |
| 131 | + |
| 132 | + Ho: mean(0) - mean(1) = diff = 0 |
| 133 | + |
| 134 | + Ha: diff < 0 Ha: diff ~= 0 Ha: diff > 0 |
| 135 | + |
| 136 | + Pooled |
| 137 | + ------------------------------------------------------------------------ |
| 138 | + t = -3.7341 t = -3.7341 t = -3.7341 |
| 139 | + P < t = 0.0001 P > |t| = 0.0002 P > t = 0.9999 |
| 140 | + |
| 141 | + Satterthwaite |
| 142 | + ------------------------------------------------------------------------ |
| 143 | + t = -3.6564 t = -3.6564 t = -3.6564 |
| 144 | + P < t = 0.0002 P > |t| = 0.0003 P > t = 0.9998 |
| 145 | + |
| 146 | + |
| 147 | + Test for Equality of Variances |
| 148 | + --------------------------------------------------------------- |
| 149 | + Variable Method Num DF Den DF F Value P > F |
| 150 | + --------------------------------------------------------------- |
| 151 | + write Folded F 90 108 1.605 0.0188 |
| 152 | + --------------------------------------------------------------- |
| 153 | + |
0 commit comments