Learn R Programming

evd (version 1.2-3)

profile2d.evd: Method for Profiling evd Objects

Description

Investigates behavior of objective function near the solution represented by fitted.

Usage

## S3 method for class 'evd':
profile2d(fitted, prof, which,  pts = 20,
    convergence = FALSE, control = list(maxit = 5000), ...)

Arguments

fitted
The original fitted model object.
prof
An object of class "profile.evd", created using profile.evd with argument fitted. The object must contain the (marginal) profiles for the two parameters specified i
which
A character vector of length two containing the original model parameters that are to be jointly profiled.
pts
The number of distinct values used for each profiled parameter in which. There are pts^2 optimizations performed in total.
convergence
Logical; print convergence code after each optimization?
control
Passed to optim. See optim for details.
...
Ignored.

Value

  • An object of class "profile2d.evd"; a list with three elements. The first element, a matrix named trace, has the same structure as the elements of an object of class "profile.evd". The last two elements give the distinct values used for each profiled parameter in which.

See Also

profile, profile.evd, profile2d

Examples

Run this code
uvdata <- rgev(100, loc = 0.13, scale = 1.1, shape = 0.2)
M1 <- fgev(uvdata)
M1P <- profile(M1)
M1JP <- profile2d(M1, M1P, which = c("scale", "shape"))
plot(M1JP)

Run the code above in your browser using DataLab