CRAN resubmission addressing a second review comment; no functional changes.
CRAN resubmission addressing reviewer feedback; no functional changes.
authors (year) <doi:...> format.\dontrun{} example from validate_cohort(); the live-database
call is now shown in the function's Details section.cdm_disconnect(). The only remaining
\dontrun{} example is cdm_connect(), which requires a live PostgreSQL
server and credentials.example_cdm() now builds a 20-person, two-arm demo CDM (target and
comparator), so every exported module — including run_covariates() —
has a runnable example against the bundled database.@examples to run_attrition(), run_density(), run_concepts(),
and run_covariates().First public release. rwevalidate validates an instantiated OMOP CDM cohort
for real-world-evidence use and produces a regulator-aligned HTML + JSON report
from a single validate_cohort() call.
cdm_connect() / cdm_disconnect() - open a PostgreSQL CDM connection and
validate that the required clinical tables exist (split-schema aware).run_concepts() - concept prevalence, ancestor coverage, and
per-domain vocabulary mapping rate (FDA Relevance).run_attrition() - cohort size, index-date distribution,
prior-observation coverage, and demographics at index (HARPER / RECORD-PE).run_density() - records per patient per month by domain and
follow-up completeness with a censoring breakdown (FDA Reliability).run_covariates() - standardized mean differences (love plot),
per-arm prevalence, and a power calculation against a comparator (HARPER).render_validation_report() writes a self-contained HTML
report with a traffic-light summary plus a machine-readable
validation_results.json sidecar; write_results_json() works without Pandoc.validate_cohort() - one entry point that wires connection, all modules,
and the report. Accepts an open con or PostgreSQL connection arguments;
concept_ids enables Module 1, comparator_id enables Module 4.