getPhaseParameter: Obtain and Plot Estimates From RACVM Partition

View source: R/getPhaseParameter.R

getPhaseParameterR Documentation

Obtain and Plot Estimates From RACVM Partition

Description

Obtain and Plot Estimates From RACVM Partition

Usage

getPhaseParameter(variable, phaselist)

Arguments

variable

one of: omega, mu.x, mu.y, eta, tau

phaselist

output of estimatePhases, i.e. a list of information on each of the selected phases

Details

getVariable takes a phase list and generates a table indicating the start time, end time, estimate, low and high 95% C.I. and selected model for a given parameter.

plotVariable

Value

getPhaseParameter returns a data.frame with start time, end time, estimate, low and high 95% C.I. and selected model for a given parameter, with each row corresponding to an enumerated partition phase.

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)

getPhaseParameter("omega",simPhaselist)

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