GithubHelp home page GithubHelp logo

bgev's Introduction

Build Status CRAN_Status_Badge Downloads from the RStudio CRAN mirror

bgev

We propose a new model Bimodal Generalized Extreme value.

Installation

You can install the released version of bgev from CRAN with:

or using devtools

devtools::install_git('https://github.com/pcbrom/bgev')

Load package

library(bgev)

Density Function

dbgev(x = 2, csi = 1, mu = 1, sigma = 1, delta = 1)
curve(dbgev(x, csi = 1, mu = 1, sigma = 1, delta = 1), xlim = c(-1, 10))
integrate(dbgev, csi = 1, mu = 1, sigma = 1, delta = 1, lower = -Inf, upper = Inf)

Distribution Function

pbgev(2, csi = 1, mu = 2, sigma = 1, delta = 2)
pbgev(2, csi = 1, mu = 2, sigma = 1, delta = 2, lower.tail = FALSE)
curve(pbgev(x, csi = 1, mu = 2, sigma = 1, delta = 2), xlim = c(-1, 10))

Quantile Function

curve(pbgev(x, csi = 1, mu = 2, sigma = 1, delta = 2), xlim = c(-5, 5))
(value <- qbgev(p = .25, csi = 1, mu = 2, sigma = 1, delta = 2, initial = 1, final = 2))
pbgev(value, csi = 1, mu = 2, sigma = 1, delta = 2)
curve(pbgev(x, csi = .1, mu = 2, sigma = 1, delta = 2), xlim = c(-5, 5))
(value <- qbgev(p = .5, csi = .1, mu = 2, sigma = 1, delta = 2, initial = 0, final = 3))
pbgev(value, csi = .1, mu = 2, sigma = 1, delta = 2)

Pseudo-Random Numbers Generator

Theoretical E(X) and empirical first moment

Theoretical E(X²) and empirical second moment

Maximum Likelihood Estimation

GEV Density Function (additional function implemented)

dgev(x = 2, csi = 0, mu = 1, sigma = 1)
curve(dgev(x, csi = 0, mu = 1, sigma = 1), xlim = c(-5, 10), ylim= c(0, .4))
integrate(dgev, csi = 0, mu = 1, sigma = 1, lower = -5, upper = 0)

GEV Distribution Function (additional function implemented)

pgev(0, csi = 0, mu = 1, sigma = 1)
integrate(dgev, csi = 0, mu = 1, sigma = 1, lower = -Inf, upper = 0)
pgev(0, csi = 0, mu = 1, sigma = 1, lower.tail = FALSE)
curve(pgev(x, csi = 0, mu = 1, sigma = 1), xlim = c(-5, 10))

Issues

Please, send to: https://github.com/pcbrom/bgev/issues

To cite package ‘bgev’ in publications use

citation("bgev")

bgev's People

Contributors

pcbrom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.