calculate_transmission_prob: Get the probability of transmission given a set of covariates

Description Usage Arguments Value

View source: R/vis-A-infects-B.R

Description

Get the probability of transmission given a set of covariates

Usage

1
2
3
4
5
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


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.