View source: R/win.strategy.default.R
win.strategy.default | R Documentation |
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.
win.strategy.default(trt_con, priority, tau, np_direction)
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.
|
Users can define their own win strategy function and input the function with the argument "win.strategy" in the "win.stat" function.
win_status |
A data frame for the win status of each pair for each endpoint. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.