Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mcp-package

Regression with Multiple Change Points


Description

The mcp package provides an interface to fit regression models with multiple change points between generalized linear segments, optionally with per-segment variance and autocorrelation structures.

The main function of mcp is the mcp() function, which uses a formula syntax to specify a wide range of change point models. Based on the supplied data, formulas, and additional information, it writes JAGS code on the fly and use rstan to fit the model, optionally in parallel to speed up sampling. You will need to install JAGS for mcp() to work.

A large number of post-processing methods can be applied. These include

  • Summarise fits using summary(), fixef(), and ranef().

  • Visualize fits using plot() and individual parameters using plot_pars().

  • Test hypotheses using hypothesis() and loo().

Extensive documentation with worked examples is available at the mcp website.


mcp

Regression with Multiple Change Points

v0.3.0
GPL-2
Authors
Jonas Kristoffer Lindeløv [aut, cre] (<https://orcid.org/0000-0003-4565-0595>)
Initial release
2020-07-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.