View source: R/default-gen-convassess.R
convassess | R Documentation |
convassess
is a generic function used to assess the convergence of
the estimation procedure to the global maximum. The function invokes particular methods
which depend on the class
of the first argument.
This function uses several starting values to assess the sensitiveness of the
fitted object with respect to starting values.
convassess(object, n = 50)
## S3 method for class 'uvpot'
convassess(object, n = 50)
## S3 method for class 'mcpot'
convassess(object, n = 50)
## S3 method for class 'bvpot'
convassess(object, n = 50)
object |
A fitted object. When using the POT package, an object
of class |
n |
The number of starting values to be tested. |
The starting values are defined using the unbiased probability
weighted moments fitted on n
bootstrap samples.
Graphics: the considered starting values, the objective values derived from numerical optimizations and traceplots for all estimated parameters. In addition, it returns invisibly all these informations.
Mathieu Ribatet
fitgpd
, fitmcgpd
, fitbvgpd
set.seed(1)
##Univariate Case
x <- rgpd(30, 0, 1, 0.2)
fgpd1 <- fitgpd(x, 0, "med")
convassess(fgpd1)
##Bivariate Case
x <- rbvgpd(50, model = "log", alpha = 0.5, mar1 = c(0, 1, 0.2))
fgpd2 <- fitbvgpd(x, c(0.5,0.5))
convassess(fgpd2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.