# NOT RUN {
## Example 1
data(vaccinated)
data(control)
data(PoDParams)
# Choosing et50 and slope as the inputs
params <- list("et50" = 4, "slope" = 6)
# Using probability density function from the populations
titerFun <-
list(
function(x) {dnorm(x, mean = vaccinated$mean, sd = vaccinated$stdDev)},
function(x) {dnorm(x, mean = control$mean, sd = control$stdDev)}
)
# Assigning true efficacy
TrueEfficacy <- 0.53
# Sqaured difference between true and calcuated efficacy
efficacySquaredError(params, TrueEfficacy, titerFun)
# }
Run the code above in your browser using DataLab