tails_i | R Documentation |
Compare right tails of two sample distributions using an interval-based approach (IBA); see \insertCiteChu_etal_2015_insurance;textualfuntimes and \insertCiteLyubchich_Gel_2017_insurance;textualfuntimes.
tails_i(x0, x1, d = NULL)
x0, x1 |
vectors of the same length (preferably).
Tail in |
d |
a threshold defining the tail. The threshold is the same for both
|
Sturges' formula is used to calculate the number of intervals
(k
) for x0
\ge
d
, then interval width is derived.
The tails, x0
\ge
d
and x1
\ge
d
,
are divided into intervals. The number of x1
-values within each interval
is compared with the number of x0
-values within the same interval
(this difference is reported as Nk
).
A list with two elements:
Nk |
vector that tells how many more |
Ck |
vector of the intervals' centers. |
Calvin Chu, Yulia R. Gel, Vyacheslav Lyubchich
q.tails
x0 <- rnorm(1000)
x1 <- rt(1000, 5)
tails_i(x0, x1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.