Performs simultaneous equivalence tests and related confidence intervals for ratios to control in a one-way layout.
etc.rat(formula, data, base = 1, margin.up = NULL, margin.lo = 1/margin.up,
method = "var.unequal", FWER = 0.05)
a formula specifying a numerical response and a grouping factor (e.g., response ~ treatment)
a data frame containing the response and group variable as columns
a single integer specifying the control group
a single numerical value or a numeric vector (of lenght equal to the number of comparisons) for relative upper margins under the null hypotheses
a single numerical value or a numeric vector (of lenght equal to the number of comparisons) for relative lower margins under the null hypotheses, set to 1/margin.up by default if not given
a character string:
"var.unequal": possibly unequal group variances,
"var.equal": equal group variances
a single numeric value specifying the familywise error rate to be controlled by the simultaneous confidence intervals
An object of class etc.rat containing:
a (named) vector of estimated ratios
a (named) vector of the calculated test statistics (method="var.equal")
a (named) vector of the calculated test statistics (up) (method="var.unequal")
a (named) vector of the calculated test statistics (do) (method="var.unequal")
a single degree of freedom (method="var.equal")
a (named) vector of degrees of freedom for test statistics (up) (method="var.unequal")
a (named) vector of degrees of freedom for test statistics (do) (method="var.unequal")
a (named) vector of degrees of freedom used for the confidence intervals (method="var.unequal")
a single critical value (method="var.equal")
a (named) vector of critical values for test statistics (up) (method="var.unequal")
a (named) vector of critical values for test statistics (do) (method="var.unequal")
a (named) vector of critical values for the confidence intervals (method="var.unequal")
a (named) vector of p-values adjusted for multiplicity
a (named) matrix of simultaneous confidence intervals
Having several treatment groups and a control, the object is to simultaneously select those treatments being equivalent to the control. Bonferroni adjusted "two one-sided t-tests" (TOST) and related simultaneous confidence intervals are used for ratios of means of normally distributed data with equal group variances (method="var.equal"). A pooled sample variance over all treatments is taken in this case. Welch-t-Tests are applied for unequal variances (method="var.unequal").
Hothorn, L.A. and Hasler, M. (2008): Proof of hazard and proof of safety in toxicological studies using simultaneous confidence intervals for differences and ratios to control, Journal of Biopharmaceutical Statistics 18, 915-933;
Bofinger, E. (1985): Expanded confidence intervals, Communications in Statistics - Theory and Methods 14 (8), 1849-1864
# NOT RUN {
data(BW)
comp <- etc.rat(formula=Weight~Dose, data=BW, margin.up=1.25, method="var.equal")
summary(comp)
# }
Run the code above in your browser using DataLab