estimatePhases: Obtain multi-state RACVM estimates

View source: R/estimatePhases.R

estimatePhasesR Documentation

Obtain multi-state RACVM estimates

Description

Takes a set of change points and fits the best model to each phase in an CVM changepoint analysis.

Usage

estimatePhases(CP.table, criterion = "BIC", verbose = TRUE)

Arguments

CP.table

change point table, i.e. output of getCPtable which contains a column of change points and a column of selected models.

criterion

an information criterion such as BIC, AIC etc.

verbose

whether to print a summary of the results

Details

The output of this function is generally passed to the summarizePhases function to obtain a tidy summary of the estiamted phases.

Value

a named list of phases (numbered by roman numerals) containing the selected model, estimates, and confidence intervals for each parameter.

See Also

summarizePhases

Examples

library(smoove)
library(magrittr)
data(simSweep)
simCP.table <- simSweep %>%
findCandidateChangePoints(clusterwidth = 4, verbose = FALSE) %>%
 getCPtable(modelset = c("UCVM", "ACVM"), criterion = "AIC")
(simPhaselist <- estimatePhases(simCP.table))

EliGurarie/smoove documentation built on Aug. 2, 2022, 10:26 p.m.