
Package index
-
mcp() - Fit Multiple Linear Segments And Their Change Points
-
plot(<mcpfit>)plot_dpar() - Plot full fits
-
plot_pars() - Plot individual parameters
-
pp_check() - Posterior Predictive Checks For Mcpfit Objects
-
summary(<mcpfit>)fixef(<mcpfit>)ranef(<mcpfit>)print(<mcpfit>) - Summarise mcpfit objects
-
predict(<mcpfit>)fitted(<mcpfit>)log_lik(<mcpfit>)residuals(<mcpfit>) - Fitted and predicted values of
mcpmodels fits -
loo(<mcpfit>)waic(<mcpfit>) - Information Criteria for Model Comparison
-
add_loglik() - Add Log-Likelihood to an mcpfit Object.
-
hypothesis() - Test Hypotheses Concerning Individual Parameters
-
as_draws(<mcpfit>) - Extract MCMC Draws from
mcpfitObjects -
mcp-package - mcp: Regression with Multiple Change Points
Axillary functions
These are used internally by mcp, but are exposed here since they may be useful for other purposes. Most other useful internal functions deliver the result already in mcp(segments, sample = FALSE), so mcp() will be their API.
-
sd_to_prec() - Transform a JAGS Prior from SD to Precision.
-
logit() - Logit function
-
ilogit() - Inverse logit function
-
probit() - Probit function
-
phi() - Inverse probit function
-
is.mcpfit() - Checks if the Argument is an
mcpfitObject
-
bernoulli() - Bernoulli Family for mcp
-
negbinomial() - Negative Binomial for mcp
Help and demos
Some showcases of typical mcp analyses. Most of these are discussed on the front page.
-
mcp_example()mcp_example_data() - Get example models and data
-
demo_fit - Example
mcpfit
-
mcpfit-classmcpfit - Class
mcpfitof Models Fitted with the mcp Package -
niterations(<mcpfit>)nchains(<mcpfit>) - Index
mcpfitobjects -
interpolate_newdata() - Returns a data.frame with all combos of predictors
-
mcpfamily()is.mcpfamily() - Create or Test Objects of Class "mcpfamily"
-
prior_summary() - Summarise priors used by an mcp model
-
print(<mcplist>) - Print mcplist
-
print(<mcptext>) - Nice Printing of Multiline Texts