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

apply_sub_file_COVR Documentation

Extracts Covariates for a Subject from a Subject Data File

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

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


john-harrold/ubiquity documentation built on March 13, 2024, 2:58 a.m.