Learn R Programming

Unifed

The unifed distribution is the only exponential dispersion family containing the exponential distribution. This repository contains an R package for working with this distribution. stan functions for the unifed distribution are also provided.

An R vignette introducing the unifed distribution and examples of how to use this package can be found at https://oquijano.gitlab.io/unifed/.

Important Note

The function unifed.kappa.prime.inverse in version 1.0 of the package returns values with the wrong sign when its argument is less than 0.1.

Please update to the current version to avoid this issue.

Installation

You can install this package directly from CRAN by typing this in your R console.

install.packages("unifed")

Side effects

Note that this package rewrites the summary method from the glm class. This will not break any code you have that uses the summary function since it is simply a wrapper around stats::summary.glm that sets the dispersion parameter equal to 1 when working with a unifed GLM.

Copy Link

Version

Install

install.packages('unifed')

Monthly Downloads

242

Version

1.1.6

License

GPL (>= 3)

Maintainer

Oscar Quijano Xacur

Last Published

January 30th, 2022

Functions in unifed (1.1.6)

unifed.mle

Maximum Likelihood Estimate for the unifed distribution
unifed.stan

Stan functions for working with the unifed distribution
unifed.stan.path

Unifed Stan function paths
dirwin.hall

Irwin-Hall density
dunifed

The unifed distribution
summary_unifed_glm

Summarizing Generalized Linear Model Fits
unifed

Family object for the unifed distribution
unifed.deviance

Deviance of the unifed distribution
unifed.varf

Variance function of the unifed distribution
unifed.kappa

Cumulant generator of the unifed distribution
car.insurance

Car insurance claims