weights_t {cusum} | R Documentation |
Weights for observations
Description
Calculate standard CUSUM weights
Usage
weights_t(patient_outcomes, probability_ae, odds_multiplier = 2)
Arguments
patient_outcomes |
Integer. Vector of binary patient outcomes (0,1) |
probability_ae |
Double. Baseline failure probability for adverse event in non-risk-adjusted case, vector of patient risk scores for risk-adjustment. |
odds_multiplier |
Double. Odds multiplier of adverse event under the alternative hypothesis (<1 looks for decreases) |
[Package cusum version 0.4.1 Index]