Two population local testing procedures
fdatest2.Rd
The function implements local testing procedures for testing mean differences between two functional populations. Functional data are tested locally and unadjusted and adjusted p-value functions are provided. The unadjusted p-value function controls the point-wise error rate. The adjusted p-value function can be computed according to the following methods:
Usage
fdatest2(
data1,
data2,
method,
mu = 0,
B = 1000L,
paired = FALSE,
dx = NULL,
alternative = "two.sided",
recycle = TRUE,
partition = NULL,
verbose = TRUE
)
Arguments
- data1
First population's data. Either pointwise evaluations of the functional data set on a uniform grid, or a
fd
object from the packagefda
. If pointwise evaluations are provided,data2
is a matrix of dimensionsc(n1,J)
, withJ
evaluations on columns andn1
units on rows.- data2
Second population's data. Either pointwise evaluations of the functional data set on a uniform grid, or a
fd
object from the packagefda
. If pointwise evaluations are provided,data2
is a matrix of dimensionsc(n1,J)
, withJ
evaluations on columns andn2
units on rows.- method
A character string specifying the method chosen to adjust the p-value. Should be one of the following: "
Global
", "IWT
", "TWT
", "PCT
", "FDR
".- mu
Functional mean difference under the null hypothesis. Three possibilities are available for
mu
:a constant (in this case, a constant function is used);
a
J
-dimensional vector containing the evaluations on the same grid whichdata
are evaluated;a
fd
object from the packagefda
containing one function.
Defaults to
mu = 0
.- B
The number of iterations of the MC algorithm to evaluate the p-values of the permutation tests. Defaults to
1000L
.- paired
Flag indicating whether a paired test has to be performed. Defaults to
FALSE
.- dx
Used only if an
fd
object is provided. In this case,dx
is the size of the discretization step of the gridused to evaluate functional data. If set toNULL
, a grid of size100L
is used. Defaults toNULL
.- alternative
A character string specifying the alternative hypothesis. Must be one of
"two.sided"
(default),"greater"
or"less"
.- recycle
Flag used to decide whether the recycled version of the IWT should be used (see Pini and Vantini, 2017 for details). Defaults to
TRUE
.- partition
Used only if
method
="PCT
". The partition to be used for PCT procedure. Default isNULL
.- verbose
Logical: if
FALSE
, reduces the amount of output. Default isTRUE
.
Value
An object of class fdatest2
containing at least the following
components:
test
: a string vector indicating the type of test performed. In this case equal to"2pop"
.mu
: evaluation on a grid of the functional mean difference under the null hypothesis (as entered by the user).unadjusted_pval
: evaluation on a grid of the unadjusted p-value function.adjusted_pval
: evaluation on a grid of the adjusted p-value function.data.eval
: evaluation on a grid of the functional data.ord_labels
: vector of labels indicating the group membership ofdata.eval
.
Details
global testing (controlling the FWER weakly)
interval-wise testing (controlling the interval-wise error rate)
threshold-wise testing (controlling the FWER asymptotically)
partition closed testing (controlling the FWER on a partition)
functional Benjamini Hochberg (controlling the FDR)
References
Abramowicz, K., Pini, A., Schelin, L., Stamm, A., & Vantini, S. (2022). “Domain selection and familywise error rate for functional data: A unified framework. Biometrics 79(2), 1119-1132.
Pini, A., & Vantini, S. (2017). Interval-wise testing for functional data. Journal of Nonparametric Statistics, 29(2), 407-424
A. Pini and S. Vantini (2017). The Interval Testing Procedure: Inference for Functional Data Controlling the Family Wise Error Rate on Intervals. Biometrics 73(3): 835–845.
Lundtorp Olsen, N., Pini, A., & Vantini, S. (2021). False discovery rate for functional data TEST 30, 784–809.
See also
See also plot.fdatest2()
for plotting the results.
Examples
# Importing the NASA temperatures data set
data(NASAtemp)
# Performing the TWT for two populations
TWT.result <- fdatest2(
NASAtemp$paris, NASAtemp$milan,
method = "TWT", B = 10L
)
#>
#> ── Threshold-wise tests ────────────────────────────────────────────────────────
# Plotting the results of the TWT
plot(
TWT.result,
xrange = c(0, 12),
main = 'TWT results for testing mean differences'
)
# Selecting the significant components at 5% level
which(TWT.result$adjusted_pval < 0.05)
#> [1] 20 40 49 50 53 57 61 64 65 68 69 70 71 72 73 76 77 86
#> [19] 87 88 89 90 91 92 93 94 97 100 101 102 103 104 105 106 107 108
#> [37] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
#> [55] 127 128 129 130 131 132 133 134 135 136 138 139 140 141 142 143 144 145
#> [73] 148 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
#> [91] 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
#> [109] 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
#> [127] 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
#> [145] 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
#> [163] 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
#> [181] 259 260 261 262 263 264 266 267 268 269 270 271 272 273 274 275 276 280
#> [199] 281 282 285 286 288 289 290 291 299 304 313 314
# Performing the IWT for two populations
IWT.result <- fdatest2(
NASAtemp$paris, NASAtemp$milan,
method = "IWT", B = 10L
)
#>
#> ── Point-wise tests ────────────────────────────────────────────────────────────
#>
#> ── Interval-wise tests ─────────────────────────────────────────────────────────
#>
#> ── Creating the p-value matrix: end of row 2 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 3 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 4 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 5 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 6 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 7 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 8 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 9 out of 365 ────────────────────────
#>
#> ── Creating the p-value matrix: end of row 10 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 11 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 12 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 13 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 14 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 15 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 16 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 17 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 18 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 19 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 20 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 21 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 22 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 23 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 24 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 25 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 26 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 27 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 28 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 29 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 30 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 31 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 32 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 33 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 34 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 35 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 36 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 37 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 38 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 39 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 40 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 41 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 42 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 43 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 44 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 45 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 46 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 47 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 48 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 49 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 50 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 51 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 52 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 53 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 54 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 55 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 56 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 57 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 58 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 59 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 60 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 61 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 62 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 63 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 64 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 65 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 66 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 67 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 68 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 69 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 70 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 71 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 72 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 73 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 74 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 75 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 76 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 77 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 78 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 79 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 80 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 81 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 82 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 83 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 84 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 85 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 86 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 87 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 88 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 89 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 90 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 91 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 92 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 93 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 94 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 95 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 96 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 97 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 98 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 99 out of 365 ───────────────────────
#>
#> ── Creating the p-value matrix: end of row 100 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 101 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 102 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 103 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 104 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 105 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 106 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 107 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 108 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 109 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 110 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 111 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 112 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 113 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 114 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 115 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 116 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 117 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 118 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 119 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 120 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 121 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 122 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 123 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 124 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 125 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 126 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 127 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 128 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 129 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 130 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 131 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 132 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 133 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 134 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 135 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 136 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 137 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 138 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 139 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 140 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 141 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 142 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 143 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 144 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 145 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 146 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 147 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 148 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 149 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 150 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 151 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 152 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 153 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 154 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 155 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 156 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 157 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 158 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 159 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 160 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 161 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 162 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 163 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 164 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 165 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 166 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 167 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 168 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 169 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 170 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 171 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 172 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 173 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 174 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 175 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 176 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 177 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 178 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 179 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 180 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 181 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 182 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 183 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 184 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 185 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 186 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 187 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 188 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 189 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 190 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 191 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 192 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 193 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 194 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 195 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 196 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 197 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 198 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 199 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 200 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 201 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 202 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 203 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 204 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 205 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 206 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 207 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 208 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 209 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 210 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 211 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 212 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 213 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 214 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 215 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 216 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 217 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 218 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 219 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 220 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 221 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 222 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 223 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 224 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 225 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 226 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 227 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 228 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 229 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 230 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 231 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 232 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 233 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 234 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 235 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 236 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 237 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 238 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 239 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 240 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 241 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 242 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 243 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 244 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 245 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 246 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 247 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 248 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 249 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 250 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 251 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 252 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 253 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 254 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 255 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 256 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 257 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 258 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 259 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 260 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 261 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 262 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 263 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 264 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 265 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 266 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 267 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 268 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 269 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 270 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 271 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 272 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 273 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 274 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 275 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 276 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 277 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 278 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 279 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 280 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 281 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 282 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 283 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 284 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 285 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 286 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 287 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 288 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 289 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 290 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 291 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 292 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 293 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 294 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 295 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 296 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 297 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 298 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 299 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 300 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 301 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 302 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 303 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 304 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 305 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 306 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 307 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 308 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 309 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 310 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 311 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 312 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 313 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 314 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 315 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 316 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 317 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 318 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 319 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 320 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 321 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 322 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 323 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 324 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 325 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 326 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 327 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 328 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 329 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 330 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 331 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 332 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 333 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 334 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 335 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 336 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 337 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 338 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 339 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 340 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 341 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 342 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 343 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 344 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 345 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 346 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 347 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 348 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 349 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 350 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 351 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 352 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 353 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 354 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 355 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 356 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 357 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 358 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 359 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 360 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 361 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 362 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 363 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 364 out of 365 ──────────────────────
#>
#> ── Creating the p-value matrix: end of row 365 out of 365 ──────────────────────
#>
#> ── Interval-Wise Testing completed ─────────────────────────────────────────────
# Plotting the results of the IWT
plot(
IWT.result,
xrange = c(0, 12),
main = 'IWT results for testing mean differences'
)
# Selecting the significant components at 5% level
which(IWT.result$adjusted_pval < 0.05)
#> [1] 93 94 95 96 101 102 103 104 105 106 107 108 109 110 111 112 113 114
#> [19] 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
#> [37] 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
#> [55] 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
#> [73] 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
#> [91] 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
#> [109] 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
#> [127] 223 224 225 226 227 228 229 230 231 232 233 234 235 241 242 243 244