View source: R/util-empiricalfunctions.R
etl | R Documentation |
Compute the empirical total loss.
etl(x, na.rm=FALSE)
x |
numeric vector of the observations. |
na.rm |
a logical value indicating whether |
Compute the empirical total loss defined as the proportion of full destruction rates, that is observations that equal 1.
A numeric value or a vector.
Dutang Christophe
x <- c(1, 0.000495134903027804, 0.787229130724068, 0.71154311082138,
0.0669802789251427, 0.310872967333683, 1, 1, 1, 1, 0.162030982251957,
1, 1, 0.322530106394859, 1, 1, 1, 0.60805410798081, 0.660941675188664, 1)
#empirical total loss (true value is 1/2)
etl(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.