R/rlogitnorm.R

Defines functions rlogitnorm

Documented in rlogitnorm

rlogitnorm <- function(n, m, s, fast = FALSE){
  if (fast)  {
    x <- Rfast::Rnorm(n, m, s)
  } else   x <- rnorm(n, m, s)
  1 / (1 + exp(-x) )
}

Try the Compositional package in your browser

Any scripts or data that you put into this service are public.

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.