powered by
This function calculates the positivity threshold based on various criteria.
find_pos(pos_thld, events, rand_ratio, hr_null, hr_alt, which_crit, targ)
Numeric. The calculated positivity threshold based on the specified criterion.
Numeric. The initial positivity threshold.
Numeric vector of length 2. The number of events at each analysis.
Numeric. The randomization ratio.
Numeric. The hazard ratio under the null hypothesis.
Numeric. The hazard ratio under the alternative hypothesis.
Integer. The criterion to be used for finding the positivity threshold:
1: False positive / False negative equals required value.
2: False positive / (False negative + False positive) equals required value.
3: False positive equals required value.
4: Predictive probability equals required value.
Numeric. The target value for the chosen criterion.
find_pos( pos_thld = 1.5, events = c(100, 200), rand_ratio = 1, hr_null = 1, hr_alt = 1.5, which_crit = 1, targ = 0.05 )
Run the code above in your browser using DataLab