Thin wrapper over ds.omop.analysis.run for the catalog's
feature-prevalence analysis ("dsomop:fe.prevalence"): the per-covariate
distinct-person count and proportion over a scoped cohort, for one clinical
domain. It builds the analysis params and delegates, so cohort/table scoping,
cross-server pooling, optional plotting, and the ONE per-patient disclosure
gate are inherited unchanged.
Usage
ds.omop.prevalence(
concept_id = NULL,
cohort = NULL,
domain = "condition",
top_n = 50,
tables = NULL,
plot = FALSE,
symbol = "omop",
conns = NULL
)Arguments
- concept_id
Integer vector or
NULL; when supplied, the gated result is narrowed to these covariate concept id(s) (a post-gate row subset).NULL(the default) returns the domain's top covariates.- cohort
Cohort reference to scope to: a
dsomop_cohort_handle, acohort_definition_id, or a server-side cohort table name. Required unlesstablesis given.- domain
Character; clinical domain by name (
"condition","drug","procedure","measurement","observation") or its code ("0"-"4"). Default"condition".- top_n
Integer; number of top covariates to return (default 50).
- tables
Optional character vector of
omop.tablesymbol names to scope to (their distinct persons); may be combined withcohort.- plot
Logical; build the entry's client-side plot over the gated data (default
FALSE). Seeds.omop.analysis.run.- symbol
Character; the session symbol (default
"omop").- conns
DSI connection object(s) or
NULLto use the session default.
Value
A dsomop_result (see ds.omop.analysis.run).