Skip to contents

Conduct type II/III hypothesis testing on the MMRM fit results.

Usage

Anova.mmrm(
  mod,
  type = c("II", "III", "2", "3"),
  tol = sqrt(.Machine$double.eps),
  test.statistic = c("F", "Chisq"),
  ...
)

Arguments

mod

(mmrm)
the fitted MMRM.

type

(string) type of test, "II", "III", '2', or '3'.

tol

(numeric) threshold blow which values are treated as 0.

test.statistic

(string)
either "F or "Chisq", indicating the kind of test to perform.

...

arguments passed from other methods.

Details

Anova() will return an anova object with one row per variable.

If test.statistic = "F", columns will be Num Df(numerator degrees of freedom), Denom Df (denominator degrees of freedom), F Statistic, and Pr(>=F).

If test.statistic = "Chisq", columns will be Chisq (the Chi-squared test statistic), Df (degrees of freedom), and Pr(>=Chisq) (p-value).