MFSubj | R Documentation |
Estimates the subject components of the mitigated fraction.
MFSubj(formula, data, compare = c("con", "vac"))
formula |
Formula of the form |
data |
Data frame |
compare |
Text vector stating the factor levels - |
The mitigated fraction is an estimator that quantifies an intervention's effect on reducing the severity of a condition. Since its units are on the probability scale, it is often a good idea to accompany it with an estimator on the original scale of measurement.
The subject components are the individual contributions of the treated subjects to MF, which is the average of the subject components.
a mfcomponents data object
MF-package
Siev D. (2005). An estimator of intervention effect on disease severity. Journal of Modern Applied Statistical Methods. 4:500–508
x <- MFSubj(lesion ~ group, calflung)
x
# MF = 0.44 comparing vac to con
#
# MF Subject Components
#
# mf_j freq min_y max_y
# 1.00 6 0.000030 0.00970
# 0.84 1 0.012500 0.01250
# 0.76 3 0.016650 0.02030
# 0.68 6 0.023250 0.03190
# 0.04 1 0.132100 0.13210
# -0.04 3 0.144575 0.16325
# -0.20 2 0.210000 0.21925
# -0.36 1 0.292000 0.29200
# -0.52 1 0.356500 0.35650
# -0.84 1 0.461500 0.46150
mean(x$subj[, "mf_j"])
# [1] 0.44
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.