Learn R Programming

logitnorm (version 0.8.39)

momentsLogitnorm: momentsLogitnorm

Description

First two moments of the logitnormal distribution by numerical integration

Usage

momentsLogitnorm(mu, sigma, abs.tol = 0, 
    ...)

Value

named numeric vector with components

  • mean: expected value, i.e. first moment

  • var: variance, i.e. second moment

Arguments

mu

parameter mu

sigma

parameter sigma

abs.tol

changing default to integrate

...

further parameters to the integrate function

Author

Thomas Wutzler

Examples

Run this code
(res <- momentsLogitnorm(4,1))
(res <- momentsLogitnorm(5,0.1))

Run the code above in your browser using DataLab