apply_sub_file_COV: Extracts Covariates for a Subject from a Subject Data File

Description Usage Arguments Value

Description

This function is used when stochastic simulations are being performed using a data file for the subject level information. If the data file contains covariate information, this function will update the system for each subjects covariates.

Usage

1
2
3
4
5
6
7
8
apply_sub_file_COV(
  tmpcfg,
  cov_found,
  sub_dataset,
  sub_ID_col,
  sub_TIME_col,
  file_ID
)

Arguments

tmpcfg

ubiquity system object

cov_found

list of covariates found in dataset

sub_dataset

name of dataset with subject parameters

sub_ID_col

name of column in dataset with subject IDs

sub_TIME_col

name of column in dataset with simulation time

file_ID

subject ID to extract covariates for

Value

ubiquity system object with the covariates set to those for the current subject


ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.