Skip to contents

Finds the optimal left-censoring threshold(s) at which the data series should be censored to make sure that the observations in the tail are likely sampled from a Weibull distribution

Usage

censored_weibull_fit(x, thresholds, warn = TRUE)

Arguments

x

A tibble which is most commonly a result of function weibull_tail_test.

thresholds

A numeric or vector of quantiles which shall be tested as optimal threshold for left-censoring.

warn

If TRUE which is the default, warnings about censoring are given.

Value

A tibble with the optimal threshold itself and the Weibull scale and shape parameters obtained from the censored sample.

Examples

data("dailyrainfall")
wbtest <- weibull_tail_test(dailyrainfall)
censored_weibull_fit(wbtest, 0.9)
#> Warning: the assumption of Weibull tail is rejected
#> # A tibble: 1 × 4
#>   optimal_threshold scale shape quantile
#>               <dbl> <lgl> <lgl>    <dbl>
#> 1              0.95 NA    NA          NA