plot.profile.etasclass: plot method for profile.etasclass objects (profile likelihood...

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/plot.profile.etasclass.R

Description

plot method for profile.etasclass objects (profile likelihood of ETAS model). Plots a smooth interpolation of the profile likelihood of a parameter of an ETAS model, as output from profile.etasclass.

Usage

1
2
## S3 method for class 'profile.etasclass'
plot(x,prob=c(0.90,0.95,0.99),...)

Arguments

x

An object of the class profile.etasclass.

prob

A vector of coverage probability for the asymptotic confidence interval computed using -2log(LR). Default value prob=c(0.90,0.95,0.99).

...

other arguments.

Details

Plots a spline interpolation of the profile likelihood for a parameter of the ETAS model for earthquake seismicity, computed with profile.etasclass;

the order of parametrs is: (mu, k0, c, p, a, gamma, d, q).

A plot method is defined for profile.etasclass objects. A number of grid points nprofile of 7 (the default) usually is enough to have a good interpolation of the profile likelihood.

Value

Plots a profile likelihood (in the scale -2log(LR)), and plots horizontal lines corresponding to the percentiles of a 1df chi-square variable of levels prob; the approximate confidence intervals corresponding to the levels prob are printed. Returns a list:

spline.profile

The spline interpolation of the profile likelihood.

conf

The approximate confidence intervals corresponding to the levels prob.

prob

The prob values used.

Note

A odd number of grid points nprofile is adviced, so that the central point is the unconstrained ML estimate for the profiled parameter, and the interpolation of the profile likelihood will have a better quality.

Author(s)

Marcello Chiodi, Giada Adelfio

See Also

eqcat, etasclass, profile.etasclass

Examples

1
2
3
4
## Not run: 
## see example in profile.etasclass

## End(Not run)

etasFLP documentation built on May 1, 2019, 6:48 p.m.