indMA: Most recent changepoints from ind method using censored MA...

Description Usage Arguments Value See Also Examples

View source: R/indma(PELT).R

Description

Detecting most recent changepoints from ind method (analyzes all the series independently in the panel data and in each given series estimate the most recent changepoint) after generating censored data from MA model. PELT is used for segmenting a time series into changing means, assumes normally distributed observations with changing mean but constant variance

Usage

1
indMA(data, pen = 0)

Arguments

data

a censored data matrix obtained from MA1.data.

pen

default 2*log(n). If pen is equal to zero , penalty term will be equal to 2*log(n)

Value

indicates the most recent changepoint in each series.

See Also

MA1.data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#Default example
library(cpcens)
sim=MA1.data()
data=sim$data
ans = indMA(data,pen)
#example(right censoring)
# The size of series(n) should be greater than 200.
sim=MA1.data(n = 500, N = 100, K = 5, eps = 1,
rho = 0.6, mu = 0, siga = 1, rates = c(NA, 0.2), Mrate = 0)
data=sim$data
ans = indMA(data,pen=0)

cpcens documentation built on Aug. 2, 2019, 5:05 p.m.

Related to indMA in cpcens...