Description Usage Arguments Details Value Author(s)
Function for detecting change points and changed variates
1 2 3 4 | calculateChangePoints(count.mat, t.vec, mean.bias.vec, alpha = 1,
beta = 1, r = 30, lambda = 0.01, p.res = 1000,
count.res = 1000, t.res = 100, sim.iter = 100, method = "map",
map.num = 1)
|
count.mat |
dgCmatrix, Count matrix. Each row represent each variate. Each column represent each observation |
t.vec |
Numeric vector, Observation time |
mean.bias.vec |
Numeric vector, Relative mean bias for each observation |
r |
Numeric, Size parameters of negative binomial distribution. |
lambda |
Numeric, Prior probability the change point occur each step |
p.res |
Integer, Approximation resolution of parameter p |
count.res |
Integer, Approximation resolution of count. |
t.res |
Integer, Approximation resolution of t. |
sim.iter |
Integer, Iteration of perfect simulation. See |
method |
Specify the method to calculate change points. |
map.num |
Number of change points. This works only if you specify method as |
This function is responsible for main calculation of this package. This calculate simulated change points for each variates, and provide them a data frame
change.point.df, Data frame, This contains simulated change points for each variates. This is composed of columns of changed variates, change point coordinates.
Yasuhiro Kojima
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.