R/pbern.R

Defines functions pbern

Documented in pbern

# cumulative distribution function of the Bernoulli distribution
pbern<-function(y,prob){
  pbinom(y,size=1,prob=prob,log.p=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.