constant.post.9mo: Defines a simple cumulative distribution function (CDF)...

Description Usage Arguments Details Value Examples

Description

Defines a simple cumulative distribution function (CDF) with a constant "hazard" rate @p lambda of routine vaccination starting at age 8.5 months.

Usage

1
constant.post.9mo(age, lambda)

Arguments

age

the age of the individual

lambda

the routine vaccination "hazard" rate

Details

The cumulative distribution function determines an individual's probabilty of receiving a routine vaccination. It is passed into the weighting calculation function (@codew.matrix) by various coverage analysis functions such as @code ll.coverage and @code mcmc.estimate . A user specifies, by name, which CDF to use when an analysis function is invoked, e.g. @code mcmc.estimate( ..., routine.cdf = "const.post.9m", ... ) . See the documentation for the respective analysis functions for details about which CDFs are supported.

Value

pexp( @p age - 8.5, @p lambda )

@see w.matrix @see ll.coverage @see mcmc.estimate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- 0:24 ; lambda <- 0.5
plot( x=x, y=constant.post.9mo(x,lambda) )

x <- 0:24 ; lambda <- seq( 1.0, 0.1, -0.2 )
plot( type="n", x=x, xlab="age", ylab="constant.post.9mo(age,lambda)",
xlim=c(min(x),max(x)), ylim=c(0,1),
xaxp=c(min(x),max(x),(max(x)-min(x))/2) )
legend( "bottomright", "lambda", lambda, inset=0.1,
fill=c(1:length(lambda)) )
for ( i in 1:length(lambda) ) {
lines( x=x, y=constant.post.9mo(x,lambda[i]), col=i )
}

vacem documentation built on April 14, 2017, 7:28 p.m.