Description Usage Arguments Value
preSumSq
prepares the objects which are needed by
compSumSq
. Thus, it returns the model.matrix (X), the X'X
matrix, and all unique rows of Xs, and also the residuals if residuals are
permuted instead of raw observations.
1 2 3 4 5 6 7 8 9 |
form |
model formula (or character string to |
form_data |
a data.frame containing all variables of the formula |
keep_term_order |
a logical value indicating whether the terms should keep their positions. If FALSE the terms are reordered so that main effects come first, followed by the interactions, all second-order, all third-order and so on. Effects of a given order are kept in the order specified. |
scaled |
a logical value indicating if numeric variables in 'form_data' are already scaled (TRUE) or not (FALSE, the default). |
y |
a numeric matrix of response data if residuals should be computed
(usually coming from |
between |
the names of between-subject factors. Only used for warning message in case of unbalanced data. |
adjusted |
adjustment for unbalanced data (default: TRUE) |
A list with the following components: model_matrix, model_matrix_labels, xpx, unique_contrasts, residuals (optional).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.