View source: R/new_covariate.R
new_covariate | R Documentation |
Describe data for a covariate, either fixed or time-variant
new_covariate( value = NULL, times = NULL, implementation = "interpolate", unit = NULL, interpolation_join_limit = 1, remove_negative_times = TRUE, round_times = NULL, comments = NULL, verbose = TRUE )
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 |
remove_negative_times |
|
round_times |
round times to specified number of digits. If |
comments |
|
verbose |
verbosity |
Object of class "covariate"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.