lavacreg: Latent Variable Count Regression Models

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Build Status

lavacreg is an R package for fitting count regression models (i.e., Poisson, negative binomial) with manifest as well as latent covariates and within multiple groups. It can be installed via GitHub.


lavacreg is currently not on CRAN. The development version of lavacreg can be installed directly from this GitHub repository using the additional package devtools. Under Windows, please make sure Rtools ( are installed and no older version of lavacreg is currently loaded:



Run lavacreg

The main function of the package is countreg(). There is an article available here on GitHub ( to introduce you to its functionality.