win.strategy.default {WINS} | R Documentation |
The Default Win Strategy Function.
Description
An intermediate function to determine the win status for each pair based on the default win strategy. Specifically, one compares each subject in the treatment group with every subject in the control group to determine the win status.
Usage
win.strategy.default(trt_con, priority, tau, np_direction)
Arguments
trt_con |
Given N_t subjects in the treatment group and N_c subjects in the control group, there are N_t*N_c pairs, each row represents a pair. The analysis dataset trt_con contains the following variables:
|
priority |
Importance order (from the most to the least important). For example, given three endpoints with the importance order as Endpoint 3, Endpoint 2, and Endpoint 1, input priority = c(3,2,1). |
tau |
A vector of numerical value for the magnitude of difference to determine win/loss/tie for each endpoint. Tau is applicable for TTE endpoints and continuous endpoints; tau is fixed as 0 for binary endpoints. Default is 0 for all endpoints. |
np_direction |
A vector of character for the direction to define a better result for each endpoint.
|
Details
Users can define their own win strategy function and input the function with the argument "win.strategy" in the "win.stat" function.
Value
win_status |
A data frame for the win status of each pair for each endpoint. |