Learn R Programming

MAICtools (version 0.1.1)

anchored_maic: Conduct Anchored Matching-Adjusted Indirect Comparison (MAIC).

Description

The endpoint of interest is either time-to-event (e.g., overall survival) or binary (e.g., objective tumor response). The methods described in this documentation are based on those originally outlined by Signorovitch et al., 2012, and further detailed in the National Institute for Health and Care Excellence (NICE) Decision Support Unit (DSU) Technical Support Document (TSD) 18.

Value

A data frame containing the anchored matching-adjusted indirect comparison results.

Arguments

ipds_wts

A data frame containing individual patient data from the intervention study, with a column containing the estimated weights (derived using estimate_weights).

intervention.arm

The name of the grouping column in the data frame specified by ipds_wts, e.g., intervention.arm = TRT. The default is TRT.

agds_eff

A data frame containing aggregate efficacy results from the comparator study.

comparator

The name of the study column in the data frame specified by agds_eff, e.g., comparator = STUDY. The default is STUDY.

comparator.study

A character specifying the comparator study, which must be quoted and cannot be empty (e.g., comparator.study = "Study XX-1"). This is the value of the study column in agds_eff set by the comparator parameter.

ipds.param.var

The name of the column that specifies only a subset of the ipds_wts to be used.

ipds.param

A character specifying the subset of the rows to be used. This is the value of the column set by the ipds.param.var.

agds.param.var

The name of the column that specifies only a specific result of the agds_eff to be used.

agds.param

A character specifying the subset of the rows to be used. This is the value of the column set by the agds.param.var.

agds.estimate

The column name of the point estimate of the effect size.

agds.ci.lower

The column name for the lower confidence limit of the point estimate of the effect size.

agds.ci.upper

The column name for the upper confidence limit of the point estimate of the effect size.

time

The name of the survival or follow-up time column in the ipds_wts.

status

The status indicator, normally 0 = event, 1 = censored. Can be reset using the event parameter.

event

A numeric value that represents the survival status, 0 = event, 1 = censored.

response

The name of the response status column in the ipds_wts.

stralist

A string specifying the stratification factors in a stratified analysis, e.g., stralist = "BPDL1, CNSBRAIN, AGEGR".

dtype

Two options are available: "HR" and "OR". The default is "HR".

wt.col

The name of the estimated weights column in the data frame specified by ipds_wts. The default is wt.

CIw

The numeric value specifying the width of the confidence interval, with a default of 0.95.

digits

Specify the number of decimal places for the output results.

Examples

Run this code
# \donttest{
results1 <- anchored_maic(
  ipds_wts = pts, intervention.arm = TRT,
  agds_eff = AgD_eff, comparator = STUDY,
  comparator.study = "Study XX-1",
  ipds.param.var = PARAMCD, ipds.param = "OS",
  agds.param.var = PARAM, agds.param = "OS",
  agds.estimate = EST, agds.ci.lower = CIL, agds.ci.upper = CIU,
  time = AVAL, status = CNSR, event = 0,
  stralist = "BPDL1, CNSBRAIN, AGEGR", dtype = "HR",
  wt.col = wt, CIw = 0.95, digits = 2)

results1

results2 <- anchored_maic(
  ipds_wts = pts, intervention.arm = TRT,
  agds_eff = AgD_eff, comparator = STUDY,
  comparator.study = "Study XX-1",
  agds.param.var = PARAM, agds.param = "ORR",
  agds.estimate = EST, agds.ci.lower = CIL, agds.ci.upper = CIU,
  response = RESP,
  stralist = "BPDL1, CNSBRAIN, AGEGR", dtype = "OR",
  wt.col = wt, CIw = 0.95, digits = 2)

results2
# }

Run the code above in your browser using DataLab