Description Usage Arguments Details Value Author(s) Examples
fa
handles the evaluation of factor effects with two behaviours. It
evaluates the effects applied to the factor x
if size == NULL
or
simulates a factor x
if size
is provided.
1 |
x |
A factor of length n to evaluate the effects. If |
beta |
A numeric vector 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 effect is
Xb,
where b is a k-length vector of regression coefficients.
A simulated factor x in case size
is provided; otherwise, a
n-length numeric vector of the evaluated effects.
Erick A. Chacón-Montalván
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.