getMuVar | R Documentation |
This function returns the variance of μ that is worth a certain number of subjects for the distribution of the response rates.
getMuVar(response_rate, tau_scale, n_worth = 1)
response_rate |
A numeric for the response rate |
tau_scale |
A numeric for the scale parameter of the Half-normal distribution of τ |
n_worth |
An integer for the number of subjects the variance of μ should be worth
with regard to the variability of the distribution of the response rate, Default: |
Calculates the variance mu_var
in
logit(p) = θ ~ N(μ, τ), μ ~ N(mu_mean, mu_var), τ ~ HN(tau_scale),
for n_worth
number of observations, as in Neuenschwander et al. (2016).
Returns a numeric for the variance of μ
Stephan Wojciekowski
Neuenschwander, Beat, et al. "Robust exchangeability designs for early phase clinical trials with multiple strata." Pharmaceutical statistics 15.2 (2016): 123-134.
getMuVar(response_rate = 0.3, tau_scale = 1) getMuVar(response_rate = 0.3, tau_scale = 1, n_worth = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.