powered by
Calculates summary statistics involved in the Generalized Pareto log-likelihood.
gpd_sum_stats(gpd_data)
A numeric vector containing positive values.
A list with components
A numeric vector. The input vector with any missings removed.
A numeric scalar. The sample size, i.e. the number of non-missing values.
A numeric scalar. The sample maximum
A numeric scalar. The sum of the non-missing sample values.
rgpd for simulation from a generalized Pareto distribution.
rgpd
# NOT RUN { # Sample data from a GP(sigma, xi) distribution gpd_data <- rgpd(m = 100, xi = 0, sigma = 1) # Calculate summary statistics for use in the log-likelihood ss <- gpd_sum_stats(gpd_data) # }
Run the code above in your browser using DataLab