check_equivalence | R Documentation |
This function evaluates whether equivalence criteria are met based on a predefined set of endpoints. It first checks whether all primary endpoints satisfy equivalence (if sequential testing is enabled). Then, it determines whether the required number of endpoints (k
) meet the equivalence threshold. The function returns a binary decision indicating whether overall equivalence is established.
check_equivalence(typey, adseq, tbioq, k)
typey |
An integer vector specifying the hierarchy of each endpoint, where |
adseq |
A boolean flag indicating whether sequential testing is enabled. If set to |
tbioq |
A matrix containing the equivalence test results for each endpoint, where |
k |
An integer specifying the minimum number of endpoints required for overall equivalence. |
When sequential testing is enabled (adseq = TRUE
), all primary endpoints must meet equivalence before secondary endpoints are considered. If sequential testing is disabled (adseq = FALSE
), all endpoints are evaluated simultaneously without hierarchical constraints. The function then determines whether at least k
endpoints meet the equivalence criteria. If the conditions are satisfied, the final equivalence decision (totaly
) is 1
; otherwise, it is 0
.
Returns a (1 × 1 matrix) containing a binary equivalence decision. A value of 1
indicates that equivalence is established, while 0
indicates that equivalence is not established.
Thomas Debray tdebray@fromdatatowisdom.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.