Selection bias in clinical sciences: Difference between revisions
Selection bias in clinical sciences (view source)
Revision as of 09:00, 28 September 2022
, 1 year ago→{{header|Julia}}: remove * 10 on pdosing
m (typo) |
(→{{header|Julia}}: remove * 10 on pdosing) |
||
Line 73:
elseif rand() < pcovid
subj.had_covid = true
elseif subj.cum_dose > 0 && rand() <= pdosing
subj.cum_dose += rand(drange)
subj.treatment_class =
Line 123:
Day 30:
Untreated: N =
Irregular Use: N =
Regular Use: N =
Day 60:
Untreated: N =
Irregular Use: N =
Regular Use: N =
Day 90:
Untreated: N =
Irregular Use: N =
Regular Use: N =
At midpoint, Infection case percentages are:
Untreated : 10.
Irregulars:
Regulars :
Day 120:
Untreated: N =
Irregular Use: N =
Regular Use: N =
Day 150:
Untreated: N =
Irregular Use: N =
Regular Use: N =
Day 180:
Untreated: N =
Irregular Use: N =
Regular Use: N =
At study end, Infection case percentages are:
Untreated : 24.
Irregulars:
Regulars :
Line 174:
Test summary:
outcome with 95% confidence: reject h_0
one-sided p-value: <1e-
Details:
number of observation in each group: [
χ²-statistic:
rank sums: [2.
degrees of freedom: 2
adjustment for ties: 0.
Kruskal-Wallis rank sum test (chi-square approximation)
Line 192:
Test summary:
outcome with 95% confidence: reject h_0
one-sided p-value: <1e-
Details:
number of observation in each group: [
χ²-statistic:
rank sums: [2.
degrees of freedom: 2
adjustment for ties: 0.
</pre>
=={{header|Python}}==
|