GPC_cpp {BuyseTest}R Documentation

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, n_UTTE, Wscheme, index_endpoint, index_censoring,
  index_UTTE, reanalyzed, 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).

censoring

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

indexC

A list containing the indexes of control observations belonging for each strata.

indexT

A list containing the indexes of treatment observations belonging for each strata.

threshold

Store the thresholds associated to each endpoint. 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. Must have length D. 1 for continuous, 2 for Gehan, and 3 for Peron.

D

The number of endpoints.

n_strata

The number of strata.

n_TTE

The number of time-to-event endpoints.

n_UTTE

The number of unique time-to-event endpoints.

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. Must have D lines and D columns.

index_endpoint

The position of the endpoint at each priority in the argument endpoint. Must have length D.

index_censoring

The position of the censoring at each priority in the argument censoring. Must have length D.

index_UTTE

The position, among all the unique tte endpoints, of the TTE endpoints. Equals -1 for non tte endpoints. Must have length n_TTE.

reanalyzed

Will this endpoint be re-analyzed latter with a different threshold.

list_survTimeC

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

list_survTimeT

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

list_survJumpC

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

list_survJumpT

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

list_lastSurv

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

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?

keepScore

Should the result of each pairwise comparison be kept?

reserve

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

returnOnlyDelta

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


[Package BuyseTest version 1.7 Index]