UtilOR2DBMVarCom converts from OR to DBM variance components.

UtilOR2DBMVarCom(K, ORVarCom)

Arguments

K

Total number of cases

ORVarCom

OR variance components, a data.frame containing VarR, VarTR, Cov1, Cov2, Cov3 and Var

Value

UtilOR2DBMVarCom returns the equivalent DBM 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