Skip to contents

Create a SAS 'IF' statement, used to describe rows to include in a SAS analysis

Usage

convertSASIncludeRows(
  includeRows = NULL,
  doseCol = getEctdColName("Dose"),
  interimCol = getEctdColName("Interim")
)

Arguments

includeRows

Row inclusion matrix (2 columns: Interim value and Dose value)

doseCol

Dose column name, given by getEctdColName by default

interimCol

Interim column name, given by getEctdColName by default

Value

A single character string

Details

Takes a matrix of interim and dose values, and produces a "SAS style" IF statement

Author

Mike K Smith mstoolkit@googlemail.com

Examples


convertSASIncludeRows( cbind(rep(1:2, each = 3), c(0, 15, 30, 0, 30, 45) ) )
#> [1] "IF (INTERIM = 1 and DOSE = 0) or (INTERIM = 1 and DOSE = 15) or (INTERIM = 1 and DOSE = 30) or (INTERIM = 2 and DOSE = 0) or (INTERIM = 2 and DOSE = 30) or (INTERIM = 2 and DOSE = 45);"