diff --git a/NEWS.md b/NEWS.md index fcde125..6c3b038 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ - Density returns 0 instead of NAN outside (0,1) - Changed first argument name of dlogitnorm from q to x +- Document argument n of rlogitnorm # logitnorm 0.8.36 Remove the library call to MASS. diff --git a/R/logitnorm.R b/R/logitnorm.R index 2c194be..8d9c20a 100755 --- a/R/logitnorm.R +++ b/R/logitnorm.R @@ -30,11 +30,13 @@ invlogit <- function( rlogitnorm <- function( ### Random number generation for logitnormal distribution - mu = 0, sigma = 1, ##<< distribution parameters + n, ##<< number of observations + mu = 0, ##<< distribution parameter + sigma = 1, ##<< distribution parameter ... ##<< arguments to \code{\link{rnorm}} ){ ##seealso<< \code{\link{logitnorm}} - plogis( rnorm(mean = mu,sd = sigma,...) ) + plogis( rnorm(n = n, mean = mu, sd = sigma, ...) ) } plogitnorm <- function( diff --git a/man/rlogitnorm.Rd b/man/rlogitnorm.Rd index a5818f9..8cda760 100755 --- a/man/rlogitnorm.Rd +++ b/man/rlogitnorm.Rd @@ -2,11 +2,11 @@ \alias{rlogitnorm} \title{rlogitnorm} \description{Random number generation for logitnormal distribution} -\usage{rlogitnorm(mu = 0, sigma = 1, ...)} +\usage{rlogitnorm(n, mu = 0, sigma = 1, ...)} \arguments{ - \item{mu}{distribution parameters} - \item{sigma}{ -} + \item{n}{number of observations} + \item{mu}{distribution parameter} + \item{sigma}{distribution parameter} \item{\dots}{arguments to \code{\link{rnorm}}} }