re {anomo} | R Documentation |
Relative efficiency (RE) calculation
Description
Calculate the relative efficiency (RE) between two designs using the re function from the R package odr.
Usage
re(od, subod, rounded = TRUE, verbose = TRUE)
Arguments
od |
Returned object of first design (e.g., unconstrained optimal design)
from function |
subod |
Returned object of second design (e.g., constrained optimal design)
from function |
rounded |
Logical; round the values of |
verbose |
Logical; print the value of relative efficiency if TRUE, otherwise not; default is TRUE. |
Value
Relative efficiency value.
Examples
# Unconstrained optimal design #----------
myod1 <- od.eq.2group(r12 = 0.5, c1 = 1, c1t = 20)
# Constrained optimal design with p = .50
myod2 <- od.eq.2group(r12 = 0.5, c1 = 1, c1t = 20, p = .50)
# Relative efficiency (RE)
myre <- re(od = myod1, subod= myod2)
myre$re # RE = 0.71
[Package anomo version 1.0.0 Index]