lmcpp: Fast Linear Regression

View source: R/RcppExports.R

lmcppR Documentation

Fast Linear Regression

Description

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

Usage

lmcpp(X, y)

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.

Value

A numeric matrix with the coefficient.

Examples

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

brmsmargins documentation built on May 20, 2022, 1:07 a.m.