densi.curv.em: Computes the density of level curves for non-parametric...

Description Usage Arguments Value Examples

View source: R/supplement.funct.R

Description

Computes the density along the level curve estimated by JT-KDE or Cond-Ex models. It is based on a kernel density estimation of simulated points for Cond-Ex and extrapolation of the kernel density estimation of the base curve for the joint tail model

Usage

1
densi.curv.em(kdetab, lines, tl, lines2)

Arguments

kdetab

a table of dimentsion k*k representing the bivariate density of the data estimated with a kernel density estimator

lines

location of the objective level curve for which the deesnity needs to be estimated in the 2D space

tl

indicator which model's density have been estimated in the kdetab, 'l' the joint tail model, 'h' for the conditional extremes model

lines2

location of the base level curve (only used when tl=l)

Value

density for each points (couple x,y) along the level curves

Examples

1
2
3
4
5
6
7
8
  ## Not run: 
 data(porto)
 fire01meantemp=na.omit(fire01meantemp)
 u=fire01meantemp
 jt.dens<-kde(u,gridsize = 200)
ltl<-densi.curv.em(kdetab=jt.dens,lines2=ltlo, tl="l", lines=ltl)

## End(Not run)

mobirep documentation built on April 22, 2021, 5:07 p.m.