View source: R/new_covariate.R
Describe data for a covariate, either fixed or time-variant
1 2 3 |
value |
a numeric vector |
times |
NULL for time-invariant covariate or a numeric vector specifying the update times for the covariate |
implementation |
for time-varying covariates either 'LOCF' (last observation carried forward) or 'interpolate' (default) |
unit |
specify covariate unit (optional, for documentation purposes only) |
interpolation_join_limit |
for 'interpolate' option, if covariate timepoints are spaced too close together, the ODE solver sometimes chokes. This argument sets a lower limit on the space between timepoints. It will create average values on joint timepoints instead. If undesired set to NULL or 0. |
remove_negative_times |
'TRUE“ or 'FALSE' |
comments |
'NULL', or vector of length equal to 'value' specifying comments to each observation |
verbose |
verbosity |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.