Calculate the Hering-Genton test statistic and its p-value
hg.test(loss1, loss2, alternative = c("two.sided", "less", "greater"),
mu = 0, alpha = 0.05, plot = FALSE, type = "OLS" )
An object of class “htest” is returned with components:
The value of the estimated test statistic.
The estimated p-value.
a confidence interval for the mean appropriate to the specified alternative hypothesis.
the estimated mean-loss differential.
the specified hypothesized value of the mean loss differential.
the estimated standard error.
a character string describing the alternative hypothesis.
a character vector giving the names of the data.
The loss series for the first model
The loss series for the second model
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".
a number indicating the true value of the mean loss differential
the size for the test.
logical, should the ACF and PACF functions be plotted for each of the loss functions and the loss differential. Also produces a scatter plot of the auto-covariances against the lag terms.
Should ordinary (default) or weighted loss be used?
Eric Gilleland
The Hering-Genton test (Hering and Genton 2011) uses a parametric model (in this case the exponential) fit to the auto-covariance function (using all the lags up to half the total distance in the series) and uses a weighted average of all the lag terms from this parametric model as an estiamte for the standard error of the mean loss differential statistic. The rest is a usual paired t-test for differences in mean whereby the standard error is estimated using the (single) differenced series (the loss differential series) and accounts for temporal dependence. The series need not be loss series.
Hering, A. S. and Genton, M. G. (2011) Comparing Spatial Predictions. Technometrics, 53 (4), 414--425. doi: 10.1198/TECH.2011.10136.
predcomp.test