Learn R Programming

POT (version 1.1-11)

convassess: Convergence Assessment for Fitted Objects

Description

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.

Usage

convassess(object, n = 50)
  
# S3 method for uvpot
convassess(object, n = 50)
# S3 method for mcpot
convassess(object, n = 50)
# S3 method for bvpot
convassess(object, n = 50)

Value

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.

Arguments

object

A fitted object. When using the POT package, an object of class 'uvpot', 'mcpot' or 'bvpot'. Generally, an object return by fitgpd, fitmcgpd or fitbvgpd.

n

The number of starting values to be tested.

Author

Mathieu Ribatet

Details

The starting values are defined using the unbiased probability weighted moments fitted on n bootstrap samples.

See Also

fitgpd, fitmcgpd, fitbvgpd

Examples

Run this code
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)

Run the code above in your browser using DataLab