Learn R Programming

Overview

The goal of lognGPD is to estimate a lognormal - Generalized Pareto mixture via the EM algorithm.

Installation

You can install the development version of lognGPD from GitHub with:

# install.packages("pak")
pak::pak("marco-bee/lognGPD")

Example

This is a basic example which shows you how to simulate and estimate a lognormal-GPD mixture:

library(lognGPD)
y <- rlognGPD(100,.9,0,1,0.5,2)
x0 <- c(.7,.2,1.3,.8,1.7)
res <- EMlogngpdmix(x0, y, maxiter = 1000, nboot = 0)

Copy Link

Version

Install

install.packages('lognGPD')

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Marco Bee

Last Published

June 2nd, 2025

Functions in lognGPD (0.1.0)

EMBoot

Bootstrap standard errors for the MLEs of a lognormal-GPD mixture
rlognGPD

Simulation of the lognormal-GPD mixture
rlognPareto

Simulation of the lognormal-Pareto spliced distribution
weiGpdLik

Weighted GPD log-likelihood
dlognGPD

Density of the lognormal-GPD mixture
dlognPareto

Density of the lognormal-Pareto spliced distribution
EMlogngpdmix

Mixture estimation via EM