EventPredPriorDistribution {MedianaDesigner} | R Documentation |
Calculation of the parameters of prior gamma distributions
Description
This function can be used for calculating the parameters of prior gamma distributions for the event hazard rate, patient dropout hazard rate and patient enrollment rate in the EventPred
function. For an example of the function call, see EventPredExample.
Usage
EventPredPriorDistribution(expected, uncertainty)
Arguments
expected |
Numeric value defining the expected value of the event hazard rate, patient dropout hazard rate or patient enrollment rate. This value must be positive. |
uncertainty |
Numeric value defining the amount of uncertainly around the expected value defined above. As a general guideline, the uncertainty parameters of 0.1, 0.3 and 0.5 define high-confidence, medium-confidence and low-confidence prior distributions. This value must be between 0 and 1. |
Value
The function returns a numeric vector with the shape and rate parameters of the prior gamma distribution.