R/dbern.R

Defines functions dbern

Documented in dbern

# probability mass function of the Bernoulli distribution
dbern<-function(y,prob){
  dbinom(y,size=1,prob=prob,log=FALSE)
}

Try the PHSMM package in your browser

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

PHSMM documentation built on Feb. 9, 2021, 5:07 p.m.