Learn R Programming

rust (version 1.3.13)

rgpd: Generalized Pareto simulation

Description

Simulates a sample of size m from a generalized Pareto distribution.

Usage

rgpd(m = 1, sigma = 1, xi = 0)

Value

A numeric vector. A generalized Pareto sample of size m.

Arguments

m

A numeric scalar. The size of sample required.

sigma

A numeric scalar. The generalized Pareto scale parameter.

xi

A numeric scalar. The generalized Pareto shape parameter.

Examples

Run this code
# \donttest{
# Sample data from a GP(sigma, xi) distribution
gpd_data <- rgpd(m = 100, xi = 0, sigma = 1)
# }

Run the code above in your browser using DataLab