UtilDBM2ORVarCom converts from DBM variance components to OR variance components

UtilDBM2ORVarCom(K, DBMVarCom)

Arguments

K

Total number of cases

DBMVarCom

DBM variance components, a data.frame containing VarR, VarC, VarTR, VarTC, VarRC and VarErr

Value

UtilDBM2ORVarCom returns the equivalent OR Variance components

Examples

DBMVarCom <- St(dataset02, FOM = "Wilcoxon", method = "DBM")$ANOVA$VarCom
UtilDBM2ORVarCom(114, DBMVarCom)
#>             VarCom      Rhos
#> VarR  0.0015349993        NA
#> VarTR 0.0002004025        NA
#> Cov1  0.0003466137 0.4320314
#> Cov2  0.0003440748 0.4288668
#> Cov3  0.0002390284 0.2979333
#> Var   0.0008022883        NA

ORVarCom <- St(dataset02, FOM = "Wilcoxon", method = "OR")$ANOVA$VarCom
UtilOR2DBMVarCom(114, ORVarCom)
#>           Estimates
#> VarR   0.0015349993
#> VarC   0.0272492343
#> VarTR  0.0002004025
#> VarTC  0.0119752962
#> VarRC  0.0122647286
#> VarErr 0.0399716032