Learn R Programming

brmsmargins (version 0.2.1)

lmcpp: Fast Linear Regression

Description

Used to get marginal coefficients off of a generalized linear mixed model.

Usage

lmcpp(X, y)

Value

A numeric matrix with the coefficient.

Arguments

X

A numeric model matrix. If intercept is desired, it must already have been added as a column.

y

A numeric matrix. A single column if one response variable or multiple columns where each column is a different response, such as a for marginal coefficients where each column is a different MCMC sample.

Examples

Run this code
lmcpp(cbind(1, mtcars$hp, mtcars$am), as.matrix(mtcars[, c("mpg", "qsec")]))

Run the code above in your browser using DataLab