R/startbernlnorm.R

Defines functions startbernlnorm

Documented in startbernlnorm

startbernlnorm <- function(x){
  p <- sum(x>0)/length(x)
  x <- x[x>0]
  x <- log(x)
  m <- mean(x)
  s <- sd(x)
  start <- list(prob=p,
                meanlog = m,
                sdlog = s)
  return(start)
}

Try the qmap package in your browser

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

qmap documentation built on April 12, 2025, 1:51 a.m.