View source: R/estimatePhases.R
estimatePhases | R Documentation |
Takes a set of change points and fits the best model to each phase in an CVM changepoint analysis.
estimatePhases(CP.table, criterion = "BIC", verbose = TRUE)
CP.table |
change point table, i.e. output of |
criterion |
an information criterion such as BIC, AIC etc. |
verbose |
whether to print a summary of the results |
The output of this function is generally passed to the summarizePhases
function to obtain a tidy summary of the estiamted phases.
a named list of phases (numbered by roman numerals) containing the selected model, estimates, and confidence intervals for each parameter.
summarizePhases
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.