R/vis-A-infects-B.R
calculate_transmission_prob.Rd
Get the probability of transmission given a set of covariates
calculate_transmission_prob( data, inf_params, covariate_names = names(inf_params)[-1] )
data | data frame with variables corresponding to those in cov_names |
---|---|
inf_params | values of parameters, possibly named |
covariate_names | covariate names |
probability of infection, the result of a logit function