Test for no main effects and interaction effects of two crossed between-subject factors and one within-subject factor
hrm.test.2.between.within(
  X,
  alpha,
  group,
  subgroup,
  factor1,
  factor2,
  subject,
  data,
  testing = rep(1, 15),
  formula,
  nonparametric,
  np.correction
)dataframe containing the data in the long table format
alpha level used for the test
column name of the data frame X specifying the groups
column name of the subgroups (crossed with groups)
column name of the data frame X of the first within-subject factor
column name of the data frame X of the second within-subject factor
column name of the data frame X identifying the subjects
column name of the data frame X containing the measurement data
vector specifying which hypotheses should be tested
formula object from the user input
Returns a data frame consisting of the degrees of freedom, the test value, the critical value and the p-value