GPC_cpp
call for each endpoint and each strata the pairwise comparison function suited to the type of endpoint and store the results.
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)
A matrix containing the values of each endpoint (in columns) for each observation (in rows). const arma::mat&.
A matrix containing the values of the censoring variables relative to each endpoint (in columns) for each observation (in rows). const arma::mat&.
A list containing the indexes of control observations belonging for each strata. List& of vector containing positive integers.
A list containing the indexes of treatment observations belonging for each strata. List& of vector containing positive integers.
Store the thresholds associated to each endpoint. const NumericVector&. Must have length D. The threshold is ignored for binary endpoints. Must have D columns.
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.
The number of endpoints. Strictly positive const int.
The number of strata . Strictly positive const int.
The number of time-to-event endpoints. Positive const int.
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.
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.
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.
A list of matrix containing the survival estimates (-threshold, 0, +threshold ...) for each event of the control group (in rows). List&.
A list of matrix containing the survival estimates (-threshold, 0, +threshold ...) for each event of the treatment group (in rows). List&.
A list of matrix containing the survival estimates and survival jumps when the survival for the control arm jumps. List&.
A list of matrix containing the survival estimates and survival jumps when the survival for the treatment arm jumps. List&.
A list of matrix containing the last survival estimate in each strata (rows) and treatment group (columns). List&.
Should the uninformative weight be re-distributed to favorable and unfavorable?
Should paired classified as neutral be re-analyzed using endpoints of lower priority? logical.
Should the result of each pairwise comparison be kept? logical.
Should vector storing neutral pairs and uninformative pairs be initialized at their maximum possible length? logical.
Should only the net benefit and win ratio be output? logical.