Learn R Programming

EBS (version 3.1)

EBSPlotProbaProfiles: Plot distribution of changepoints of each profile

Description

For the set of profiles and their number of segments, plots the posterior distribution of each of the change-points

Usage

EBSPlotProbaProfiles(x,K=numeric(),data=FALSE)

Arguments

x
An object of class EBSProfiles returned by function EBSProfiles applied to the matrix of profiles of interest.
K
The vector of number of segments of the segmentation for which the posterior distributions are wanted (one value for each profile). Must have 2
data
A logical vector. If TRUE, the data is plotted as well as the posterior distributions. By default, data=FALSE.

Value

A plot of the posterior distributions, for each profile.

Details

This function is used to plot the posterior distribution of all changepoints of a segmentation in K[l] segments for all profiles l. Graph is subdivided into NbConditions plots, one for each profile.

References

Rigaill, Lebarbier & Robin (2012): Exact posterior distributions over the segmentation space and model selection for multiple change-point detection problems Statistics and Computing

Cleynen & Robin (2014): Comparing change-point location in independent series Statistics and Computing

See Also

EBSegmentation, EBSPlotProba

Examples

Run this code
# changes for Poisson model
set.seed(1)
x1<-c(rpois(125,1),rpois(100,5),rpois(50,1),rpois(75,5),rpois(50,1))
x2<-c(rpois(125,3),rpois(75,4),rpois(75,1),rpois(125,8))
M<-rbind(x1,x2)
E <- EBSProfiles(M,model=1,K=10)
EBSPlotProbaProfiles(E, K=c(5,4), data=TRUE)

Run the code above in your browser using DataLab