convertSASIncludeRows: Create a SAS 'IF' statement

convertSASIncludeRowsR Documentation

Create a SAS 'IF' statement

Description

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

Details

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

Value

A single character string

Author(s)

Mike K Smith mstoolkit@googlemail.com

Examples


convertSASIncludeRows( cbind(rep(1:2, each = 3), c(0, 15, 30, 0, 30, 45) ) )


MikeKSmith/MSToolkit documentation built on Feb. 15, 2024, 5:32 p.m.