Skip to contents

Create a parameter object for defining the estimation analyses.

Usage

createRunCmAnalysesArgs(
  label = NULL,
  riskStratificationMethod = "equal",
  stratificationOutcomes = "all",
  riskStratificationThresholds = 4,
  psMethod = "stratifyByPs",
  effectEstimationSettings = createStratifyByPsArgs(),
  timePoint = 365
)

Arguments

label

A single-word description of the analysis.

riskStratificationMethod

Can be "equal" for equal-sized risk strata; "quantile" for user-specified risk quantiles as thresholds; "custom" for user-specified risk thresholds

stratificationOutcomes

The outcome IDs on which risk stratification will be carried out. Should be a subset of the stratification outcomes defined in the `analysisSettings`. Default is "all".

riskStratificationThresholds

The thresholds to be used for risk stratification. If `riskStratificationMethod` is "equal" then it should be a single number denoting the number of equal-sized risk subgroups; if `riskStratificationMethod` is "quantile", then it is a vector from 0 to 1 (increasing); if `riskStratificationMethod` is "custom", then it is a vector with the predicted probabilities to be used as thresholds

psMethod

How should the propensity scores be used? Can be one of "stratifyByPs" or "matchOnPs".

effectEstimationSettings

Parameter object providing further settings for the implementation of selected psMethod to the estimation process. Can be created using one of createStratifyByPsArgs when stratifyByPs is selected or createMatchOnPsArgs when matchOnPs is selected.

timePoint

The time point after cohort start that absolute differences should be estimated.

Value

A parameter object for running the the estimation step.