getMuVar: getMuVar

getMuVarR Documentation

getMuVar

Description

This function returns the variance of μ that is worth a certain number of subjects for the distribution of the response rates.

Usage

getMuVar(response_rate, tau_scale, n_worth = 1)

Arguments

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: 1

Details

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).

Value

Returns a numeric for the variance of μ

Author(s)

Stephan Wojciekowski

References

Neuenschwander, Beat, et al. "Robust exchangeability designs for early phase clinical trials with multiple strata." Pharmaceutical statistics 15.2 (2016): 123-134.

Examples

  getMuVar(response_rate = 0.3,
           tau_scale     = 1)
  getMuVar(response_rate = 0.3,
           tau_scale     = 1,
           n_worth       = 2)

bhmbasket documentation built on March 18, 2022, 7:46 p.m.