apply_sub_file_COV {ubiquity} | R 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
[Package ubiquity version 2.1.0 Index]