powered by
Debug contrast errors in ANOVA-like models
debug_contr_error(dat, subset_vec = NULL)
A list with two elements:
Integer vector giving the number of levels for each factor variable in dat.
dat
List of factor level labels for each factor variable in dat.
A data frame of predictors.
Optional logical or numeric index vector used to subset rows before checks.
# \donttest{ dat <- data.frame( group = factor(rep(letters[1:3], each = 3)), score = rnorm(9) ) debug_contr_error(dat = dat) # }
Run the code above in your browser using DataLab