Returns a list scanZ
with tauhat
, Zmax
, and a matrix of the scan statistics for each type of scan statistic specified. See below for more details.
tauhatAn estimate of the two ends of the changed interval.
ZmaxThe test statistic (maximum of the scan statistics).
ZA matrix of the original scan statistics (standardized counts) if statistic specified is "all" or "o".
ZwA matrix of the weighted scan statistics (standardized counts) if statistic specified is "all" or "w".
SA matrix of the generalized scan statistics (standardized counts) if statistic specified is "all" or "g".
MA matrix of the max-type scan statistics (standardized counts) if statistic specified is "all" or "m".
RA matrix of raw counts of the original scan statistic. This output only exists if the statistic specified is "all" or "o".
RwA matrix of raw counts of the weighted scan statistic. This output only exists if statistic specified is "all" or "w".
pval.apprThe approximated p-value based on asymptotic theory for each type of statistic specified.
pval.permThis output exists only when the argument pval.perm is TRUE . It is the permutation p-value from B permutations and appears for each type of statistic specified (same for perm.curve, perm.maxZs, and perm.Z).
perm.curveA B by 2 matrix with the first column being critical values corresponding to the p-values in the second column.
perm.maxZsA sorted vector recording the test statistics in the B permutaitons.
perm.ZA B by n-squared matrix with each row being the vectorized scan statistics from each permutaiton run.