find_prot_titre_val.Rd
The search engine behind get_protection_level
. Should not
usually be necessary to call this directly.
find_prot_titre_val( fit, var_name, newdata = NULL, prot_var_name = "prot_point", lvl = 0.5, ci_level = 0.95, tol = 10^(-7) )
fit | Object returned by |
---|---|
var_name | Name of the covariate for which the protection values should
be calculated. This name should appear in the formula of the call to
|
newdata | A dataframe with all covariates except the one for which protection values should be calculated. |
prot_var_name | A variable name among those returned by
|
lvl | Protection level to find titre values for. Default is 0.5 (50%). |
ci_level | Confidence level for the calculated interval. Default is 0.95. |
tol | Tolerance. The values will be found numerically,
once the algorithm converges within |
A dataframe. Will have the same variables as newdata
with
the addition of the var_name
variable.