Learn R Programming

BuyseTest (version 1.6)

GPC_cpp: C++ function performing the pairwise comparison over several endpoints.

Description

GPC_cpp call for each endpoint and each strata the pairwise comparison function suited to the type of endpoint and store the results.

Usage

GPC_cpp(endpoint, censoring, indexC, indexT, threshold, method, D,
  n_strata, n_TTE, Wscheme, index_survival_M1, threshold_M1,
  list_survTimeC, list_survTimeT, list_survJumpC, list_survJumpT,
  list_lastSurv, correctionUninf, neutralAsUninf, keepScore, reserve,
  returnOnlyDelta)

Arguments

endpoint

A matrix containing the values of each endpoint (in columns) for each observation (in rows). const arma::mat&.

censoring

A matrix containing the values of the censoring variables relative to each endpoint (in columns) for each observation (in rows). const arma::mat&.

indexC

A list containing the indexes of control observations belonging for each strata. List& of vector containing positive integers.

indexT

A list containing the indexes of treatment observations belonging for each strata. List& of vector containing positive integers.

threshold

Store the thresholds associated to each endpoint. const NumericVector&. Must have length D. The threshold is ignored for binary endpoints. Must have D columns.

method

The index of the method used to score the pairs. const IntegerVector&. Must have length D. 1 for continuous, 2 for Gehan, and 3 for Peron.

D

The number of endpoints. Strictly positive const int.

n_strata

The number of strata . Strictly positive const int.

n_TTE

The number of time-to-event endpoints. Positive const int.

Wscheme

The matrix describing the weighting strategy. For each endpoint (except the first) in column, weights of each pair are initialized at 1 and multiplied by the weight of the endpoints in rows where there is a 1. const arma::mat&. Must have D lines and D columns.

index_survival_M1

The position, among all the survival endpoints, of the last same endpoint (computed with a different threshold). If it is the first time that the TTE endpoint is used it is set to -1. const IntegerVector. Must have length n_TTE.

threshold_M1

The previous latest threshold of each TTE endpoint. When it is the first time that the TTE endpoint is used it is set to -1. const NumericVector. Must have length n_TTE.

list_survTimeC

A list of matrix containing the survival estimates (-threshold, 0, +threshold ...) for each event of the control group (in rows). List&.

list_survTimeT

A list of matrix containing the survival estimates (-threshold, 0, +threshold ...) for each event of the treatment group (in rows). List&.

list_survJumpC

A list of matrix containing the survival estimates and survival jumps when the survival for the control arm jumps. List&.

list_survJumpT

A list of matrix containing the survival estimates and survival jumps when the survival for the treatment arm jumps. List&.

list_lastSurv

A list of matrix containing the last survival estimate in each strata (rows) and treatment group (columns). List&.

correctionUninf

Should the uninformative weight be re-distributed to favorable and unfavorable?

neutralAsUninf

Should paired classified as neutral be re-analyzed using endpoints of lower priority? logical.

keepScore

Should the result of each pairwise comparison be kept? logical.

reserve

Should vector storing neutral pairs and uninformative pairs be initialized at their maximum possible length? logical.

returnOnlyDelta

Should only the net benefit and win ratio be output? logical.