Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
man
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

output
github_document

CRAN_Status_Badge Travis-CI Build Status

Overview

logitnorm package provides support for the univariate logit-normal distribution. In addition to the usual random, density, percential, and quantile function, it helps with estimating distribution parameters from observations statistics.

Installation

# From CRAN
install.packages("logitnorm")

# Or the the development version from GitHub:
# install.packages("devtools")
devtools::install_github("bgctw/logitnorm")

Usage

See the package vignette for an introduction.

A simple example estimates distribution parameters from observation statistics of mode 0.7 and upper quantile 0.9. Next, the density is computed and plotted across a range of quantiles.

(theta <- twCoefLogitnormMLE(0.7,0.9))
#>             mu    sigma
#> [1,] 0.7608886 0.464783
x <- seq(0,1, length.out=81) 
d <- dlogitnorm(x, mu=theta[1,"mu"], sigma=theta[1,"sigma"])
plot(d~x,type="l")
abline(v=c(0.7,0.9), col="grey")

plot of chunk example

About

Functions for the logitnormal distribution

Resources

Languages

You can’t perform that action at this time.