R/dlog.r

#######################################################
# Density functions of the sojourn time distributions #
#######################################################

# Density function of the logarithmic distribution
# ------------------------------------------------
dlog <- function(x, p){
  y <- - p^(x + 1) / ((x + 1) * log(1 - p))
  return(y)
  }

Try the hsmm package in your browser

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

hsmm documentation built on May 2, 2019, 12:32 p.m.