rubin_df | R Documentation |
Compute degrees of freedom according to the Barnard-Rubin formula.
rubin_df(v_com, var_b, var_t, M)
v_com |
Positive number representing the degrees of freedom in the complete-data analysis. |
var_b |
Between-variance of point estimate across multiply imputed datasets. |
var_t |
Total-variance of point estimate according to Rubin's rules. |
M |
Number of imputations. |
The computation takes into account limit cases where there is no missing data
(i.e. the between-variance var_b
is zero) or where the complete-data degrees of freedom is
set to Inf
. Moreover, if v_com
is given as NA
, the function returns Inf
.
Degrees of freedom according to Barnard-Rubin formula. See Barnard-Rubin (1999).
Barnard, J. and Rubin, D.B. (1999). Small sample degrees of freedom with multiple imputation. Biometrika, 86, 948-955.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.