Describe one study-design feature
Arguments
- name
Feature name: letters, digits and underscores.
- columns
Character vector of the numeric columns the feature produces.
- compute
function(ctx, state, fit)returning a data frame withstay_idand exactlycolumns.ctxhasctx$con,ctx$staysandctx$zip5()(one row per stay:person_id, stay_id, zip5, rule, cached).stateis an environment for fitted state, filled only whenfitisTRUE; the function must error when it needs state that is absent andfitis false.- description
Free text recorded in the manifest.
- requires
Character vector of OMOP tables the feature reads.
- labels
Named character vector of concept names,
c(column = "label").- concept_ids
Named numeric vector pinning columns to site-defined concept ids; other columns are registered automatically on
write_feature_set().- params
JSON-serialisable list of the settings that define the feature (recorded in the manifest).
- state
Optional named list of fitted state to start from.
