brown.method {RecordTest} | R Documentation |
Brown's Method on the Number of Records
Description
Performs Brown's method on the p-values of N.test
as proposed by Cebrián, Castillo-Mateo and Asín (2022). The null
hypothesis of the classical record model (i.e., of IID continuous RVs) is
tested against the alternative hypothesis.
Usage
brown.method(
X,
weights = function(t) 1,
record = c(FU = 1, FL = 1, BU = 1, BL = 1),
alternative = c(FU = "greater", FL = "less", BU = "less", BL = "greater"),
correct = TRUE
)
Arguments
X |
A numeric vector, matrix (or data frame). |
weights |
A function indicating the weight given to the different
records according to their position in the series,
e.g., if |
record |
Vector of length four. Each element is a logical indicating if the p-value of the test for forward upper, forward lower, backward upper and backward lower are going to be used, respectively. Logical values or 0,1 values are accepted. |
alternative |
Vector of length four. Each element is one of
|
correct |
Logical. Indicates, whether a continuity correction
should be applied in |
Details
The test is implemented as given by Cebrián,
Castillo-Mateo and Asín (2022), where the p-values
,
,
, and
of the test
N.test
for the four types of record are used for
the statistic:
Any other combination of p-values for the test is also allowed (see
argument record
).
According to Brown's method (Brown, 1975) for the union of dependent
p-values, the statistic follows a distribution,
with a scale parameter
and
degrees of freedom that
depend on the covariance of the p-values. This covariances are
approximated according to Kost and McDermott (2002):
where is the correlation between their respective
statistics.
Power studies indicate that this and foster.test
using all
four types of record and linear weights are the two most powerful records
tests for trend detection against a linear drift model. In particular,
this test is more powerful than Mann-Kendall test against alternatives
with a linear drift in location in series of generalised Pareto variables
and some cases of the generalised extreme value variables (see Cebrián,
Castillo-Mateo and Asín, 2022).
Value
A "htest"
object with elements:
statistic |
Value of the chi-square statistic (not scaled). |
parameter |
Degrees of freedom |
p.value |
P-value. |
method |
A character string indicating the type of test performed. |
data.name |
A character string giving the name of the data. |
Author(s)
Jorge Castillo-Mateo
References
Brown M (1975). “A Method for Combining Non-Independent, One-Sided Tests of Significance.” Biometrics, 31(4), 987-992. doi:10.2307/2529826.
Cebrián AC, Castillo-Mateo J, Asín J (2022). “Record Tests to Detect Non Stationarity in the Tails with an Application to Climate Change.” Stochastic Environmental Research and Risk Assessment, 36(2), 313-330. doi:10.1007/s00477-021-02122-w.
Kost JT, McDermott MP (2002). “Combining Dependent P-Values.” Statistics & Probability Letters, 60(2), 183-190. doi:10.1016/S0167-7152(02)00310-3.
See Also
fisher.method
, foster.test
,
N.test
Examples
brown.method(ZaragozaSeries)
brown.method(ZaragozaSeries, weights = function(t) t-1)
brown.method(ZaragozaSeries, weights = function(t) t-1, correct = FALSE)
# Join p-values of upper records
brown.method(ZaragozaSeries, weights = function(t) t-1, record = c(1,0,1,0))
# Join p-values of lower records
brown.method(ZaragozaSeries, weights = function(t) t-1, record = c(0,1,0,1))