Description Usage Arguments Details Value Author(s) Examples
mfa handles the evaluation of multivariate factor effects with two
behaviours. It evaluates the multivariate effects applied to the replicated factor
x if size == NULL or simulates the replicated factor x if
size is provided.
| 1 | 
| x | A replicated covariate factor of length nq to evaluate the
multivariate effects. It is a q times replicated vector of x*. If
 | 
| beta | A kxq matrix B of regression coefficients representing the effects
for each level of  | 
| levels | A character vector of length k to name the  | 
| size | A numeric value n representing the number of units, it is used to
simulate the covariate  | 
Considering x* the n-length factor under study with k levels and X the associated nxk design matrix with dummy variables corresponding to each level of the factor, the returning multivariate effect is
vec(XB),
where B is a kxq matrix of regression coefficients and vec(.) represents a vectorization by columns of the provided matrix.
A simulated replicated factor x in case size is provided;
otherwise, a nq-length numeric vector of the evaluated multivariate
effects.
Erick A. Chacón-Montalván
| 1 2 3 4 5 6 7 8 9 10 11 | # Different effects for each response.
(x <- mfa(beta = cbind(1:2, 2:3, 0:1), levels = c("F", "M"), size = 10))
mfa(x, beta = cbind(1:2, 2:3, 0:1))
# Same effects for each response.
(x <- mfa(beta = replicate(3, 0:2), size = 10))
mfa(x, beta = replicate(3, 0:2))
# Differrent intercepts for each response.
(x <- mfa(beta = cbind(1, 2, 0), size = 10))
mfa(x, beta = cbind(1, 2, 0))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.