summariseSequenceRatios {CohortSymmetry} | R Documentation |
Using generateSequenceCohortSet to obtain sequence ratios for the desired outcomes.
summariseSequenceRatios(
cohort,
cohortId = NULL,
confidenceInterval = 95,
minCellCount = 5
)
cohort |
A cohort table in the cdm. |
cohortId |
The Ids in the cohort that are to be included in the analyses. |
confidenceInterval |
Default is 95, indicating the central 95% confidence interval. |
minCellCount |
The minimum number of events to reported, below which results will be obscured. If 0, all results will be reported. |
A local table with all the analyses.
library(CohortSymmetry)
cdm <- mockCohortSymmetry()
cdm <- generateSequenceCohortSet(cdm = cdm,
name = "joined_cohorts",
indexTable = "cohort_1",
markerTable = "cohort_2")
pssa_result <- summariseSequenceRatios(cohort = cdm$joined_cohorts, minCellCount = 0)
pssa_result
CDMConnector::cdmDisconnect(cdm)