mfe: Multivariate Fixed Effects

Description Usage Arguments Details Value Author(s) Examples

Description

mfe evaluates the multivariate fixed effects for a continuous replicated covariate x.

Usage

1
mfe(x, beta)

Arguments

x

A replicated continuous covariate of length nq for which the fixed effects are evaluated. It is a q-times replicated vector of x*.

beta

A vector of length q, where each element is a regression coefficient associated to each response variable.

Details

Considering x* the continuous covariate of length n, the returning multivariate effect is

vec(x*b),

where b is a q-length row vector of regression coefficients and vec(.) represents a vectorization by columns of the provided matrix.

Value

A nq-length numeric vector of the evaluated multivariate effects.

Author(s)

Erick A. Chacón-Montalván

Examples

1
2
3
4
5
# Different effects for each response.
mfe(x = rep(rnorm(5), 3), beta = c(0.1, 0, 1))

# Same effects for each response.
mfe(x = rep(rnorm(5), 3), beta = rep(10, 3))

ErickChacon/datasim documentation built on March 25, 2020, 7:53 p.m.