
Dunnett's many-to-one comparisons with exact multivariate-t p-values
Source:R/dunnett_test.R
morie_dunnett_test.RdEach treatment mean is compared with the control by t_i = (ybar_i - ybar_0) / sqrt(MSE (1/n_i + 1/n_0)) on the pooled within-group mean square with N - k - 1 degrees of freedom; jointly the t_i are multivariate t with correlations lambda_i lambda_j, lambda_i = sqrt(n_i / (n_i + n_0)) (Dunnett 1955). The two-sided adjusted p-value is 1 - P(max_j |T_j| <= |t_i|), computed by quadrature of Dunnett's double integral: multcomp's glht(..., mcp(g = "Dunnett")).