decision(tau,null,alt=NA,penalty="SIC",n=0,diffparam=1,pen.value=0)
If the test statistic is already known then it replaces the null value and the alternative is not required (default NA). In this case the test is null>=penalty, if TRUE then the changepoint is deemed a true changepoint, if FALSE then n (length of data) is returned.
In reality this function should not be used unless you are performing a changepoint test using output from other functions. This function is used in the "see also" functions that perform various changepoint tests, ideally these should be used.
AIC: Akaike, H. (1974) A new look at the statistical model identification, Automatic Control, IEEE Transactions on 19(6), 716--723
Hannan-Quinn: Hannan, E. J. and B. G. Quinn (1979) The Determination of the Order of an Autoregression, Journal of the Royal Statistical Society, B 41, 190--195
cpt.mean
,cpt.var
,cpt.meanvar
,single.mean.norm
,single.var.norm
,single.meanvar.norm
# Example of finding a change
out=c(100,765.1905,435.6529) # tau, null, alt
decision(out[1],out[2],out[3],penalty="SIC",n=200,diffparam=1) # returns 100 as a true changepoint
# Example of no change found
out=c(53,-22.47768,-24.39894) # tau, null, alt
decision(out[1],out[2],out[3],penalty="Manual",n=200,diffparam=1,pen.value="2*log(n)")
Run the code above in your browser using DataLab