Get the probability of transmission given a set of covariates

calculate_transmission_prob(
  data,
  inf_params,
  covariate_names = names(inf_params)[-1]
)

Arguments

data

data frame with variables corresponding to those in cov_names

inf_params

values of parameters, possibly named

covariate_names

covariate names

Value

probability of infection, the result of a logit function