Returns a list scanZ
with tauhat
, Zmax
, and a vector of the scan statistics for each type of scan statistic specified. See below for more details.
tauhat_aAn estimate of the location of the change-point for averaging approach.
tauhat_uAn estimate of the location of the change-point for union approach.
Z_a_maxThe test statistic (maximum of the scan statistics) for averaging approach.
Z_u_maxThe test statistic (maximum of the scan statistics) for union approach.
Zo_aA vector of the original scan statistics (standardized counts) for averaging approach if statistic specified is "all" or "o".
Zo_uA vector of the original scan statistics (standardized counts) for union approach if statistic specified is "all" or "o".
Zw_aA vector of the weighted scan statistics (standardized counts) for averaging approach if statistic specified is "all" or "w".
Zw_uA vector of the weighted scan statistics (standardized counts) for union approach if statistic specified is "all" or "w".
S_aA vector of the generalized scan statistics (standardized counts) for averaging approach if statistic specified is "all" or "g".
S_uA vector of the generalized scan statistics (standardized counts) for union approach if statistic specified is "all" or "g".
M_aA vector of the max-type scan statistics (standardized counts) for averaging appraoch if statistic specified is "all" or "m".
M_uA vector of the max-type scan statistics (standardized counts) for union appraoch if statistic specified is "all" or "m".
Ro_aA vector of raw counts of the original scan statistic for averaging approach. This output only exists if the statistic specified is "all" or "o".
Ro_uA vector of raw counts of the original scan statistic for union approach. This output only exists if the statistic specified is "all" or "o".
Rw_aA vector of raw counts of the weighted scan statistic for averaging appraoch. This output only exists if statistic specified is "all" or "w".
Rw_uA vector of raw counts of the weighted scan statistic for union appraoch. 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 matrix with each row being the scan statistics from each permutaiton run.