mockCohortSymmetry {CohortSymmetry} | R Documentation |
Creates mock cdm object for testing
Description
Creates a mock cdm with two default synthetic cohorts, one is the index cohort and the other one is the marker cohort. However the users could specify them should they wish.
Usage
mockCohortSymmetry(
seed = 1,
indexCohort = NULL,
markerCohort = NULL,
con = DBI::dbConnect(duckdb::duckdb(), ":memory:"),
schema = "main"
)
Arguments
seed |
The seed to be inputted. |
indexCohort |
The tibble of your index cohort. Default is NULL, which means the default indexCohort is being used. |
markerCohort |
The tibble of your marker cohort. Default is NULL, which means the default markerCohort is being used. |
con |
Connection detail. |
schema |
Name of your write schema. |
Value
A mock cdm object contains your index and marker cohort
Examples
library(CohortSymmetry)
cdm <- mockCohortSymmetry()
cdm
CDMConnector::cdmDisconnect(cdm = cdm)
[Package CohortSymmetry version 0.1.2 Index]