pfree.equ: Equilibrium probability of freedom

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

Description

Calculates equilibrium probability of disease freedom and equilibrium prior probability of freedom, after discounting for probability of introduction

Usage

1
pfree.equ(sep, p.intro)

Arguments

sep

population sensitivity for time period (scalar or vector)

p.intro

probability of introduction for time period (scalar or vector of same length as sep)

Value

a list of 2 vectors, equilibrium posterior probability of freedom and equilibrium prior (discounted) probability of freedom

Examples

1
2
3
4
# examples of pfree.equ
pfree.equ(runif(10, 0.4, 0.6), 0.01)
pfree.equ(0.8, 0.05)
pfree.equ(rep(0.9, 6), c(0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05))

RSurveillance documentation built on July 2, 2020, 2:33 a.m.