anova.Renouv | R Documentation |
Compute an analysis of deviance table for two nested Renouv objects
## S3 method for class 'Renouv'
anova(object, object1, trace = 1L, ...)
object |
A |
object1 |
A |
trace |
Level of verbosity. The value |
... |
Not used yet. |
Of special interest is the case when the distribution of the excesses
used in object
is exponential while object1
uses a
two-parameters alternative in the GPD family. We know then that the
convergence to the asymptotic distribution is slow, and a numerical
approximation of the true distribution of the test statistic is used
when possible, i.e. when the objects do not use MAX or OTS data and the
number of exceedances is between 8 and 500.
An object of class "anova"
inheriting from class "data.frame"
.
The deviance of the models can not be interpreted: only the difference of the deviance is meaningful.
anova
, LRExp.test
.
## test using historical data
fit1Exp <- Renouv(Garonne, distname.y = "exponential", plot = FALSE)
fit1GPD <- Renouv(Garonne, distname.y = "GPD", plot = FALSE)
anova(fit1Exp, fit1GPD)
## test without using historical data
x <- Garonne$OTdata$Flow
dur <- Garonne$OTinfo$effDuration
fit2Exp <- Renouv(x, threshold = 2700, effDuration = dur,
distname.y = "exponential", plot = FALSE)
fit2GPD <- Renouv(x, threshold = 2700, effDuration = dur,
distname.y = "GPD", plot = FALSE)
anova(fit2Exp, fit2GPD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.