pat_preds: Patient CDI Infection Probabilities

Description Usage Arguments Value Examples

View source: R/Base_Functions.R

Description

Calculate probabilities of patients being infected based on machine-learning algorithm

Usage

1
pat_preds(model, data, intial_infect_pat)

Arguments

model

Machine-learning model to be used

data

Tibble of patients

initial_infect_pat

Initial number of patients to be set as infected

Value

A new tibble of patients with infectivities and susceptibilities based on probabilities from the machine-learning model

Examples

1
new_tibble_patients <- pat_preds(model, data, initial_infect_pat)

PippintheFoolhardy/SimFunctions documentation built on Dec. 18, 2021, 7:43 a.m.