lstalvdt_source: Create an 'lstalvdt_source' object

Description Usage Arguments Value Author(s)

View source: R/derive_var_lstalvdt.R

Description

Create an lstalvdt_source object

Usage

1
2
3
4
5
6
7
8
9
lstalvdt_source(
  dataset_name,
  filter = NULL,
  date,
  date_imputation = NULL,
  preserve = FALSE,
  traceability_vars = NULL,
  dataset = deprecated()
)

Arguments

dataset_name

The name of the dataset, i.e. a string, used to search for the last known alive date.

filter

An unquoted condition for filtering dataset.

date

A variable providing a date where the patient was known to be alive. A date, a datetime, or a character variable containing ISO 8601 dates can be specified. An unquoted symbol is expected.

date_imputation

A string defining the date imputation for date. See date_imputation parameter of impute_dtc() for valid values.

preserve

Preserve day if month is missing and day is present

For example "2019---07" would return "2019-06-07 if preserve = TRUE (and date_imputation = "MID").

Permitted Values: TRUE, FALSE

Default: FALSE

traceability_vars

A named list returned by vars() defining the traceability variables, e.g. vars(LALVDOM = "AE", LALVSEQ = AESEQ, LALVVAR = "AESTDTC"). The values must be a symbol, a character string, or NA.

dataset

Deprecated, please use dataset_name instead.

Value

An object of class "lstalvdt_source".

Author(s)

Stefan Bundfuss


epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.