patients_table: Constructing Tibble of Patients

Description Usage Arguments Value Examples

View source: R/Base_Functions.R

Description

Generate patients based on previous patient-level data on characteristics such as age, sex, Elixhauser risk score, number of diagnoses, etc.

Usage

1
patients_table(ml_data, all_data, npat, initial_infect_pat, model)

Arguments

ml_data

Data to use in machine-learning algorithm

all_data

All patient-level data available

npat

Number of patients in the simulation

model

Machine-learning model to use

initial_infected_pat

Number of initial infected patients in the simulation

Value

A tibble of patients for use in the simuation; patients generated by multiple other functions in this library

Examples

1
patients <- patients_table(ml_data, all_data, npat, initial_infect_pat, model)

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