Open xiasijian opened 1 year ago
rateCvToAlphaBeta <- function(rate, cv) { ab <- rate (1-rate) / (cvrate)^2 - 1 my.alpha <- rate ab my.beta <- (1-rate)ab return(list(alpha=my.alpha, beta=my.beta)) }
#############################
############################# smgBbdFullAnalysis <- function(mu, cv, Leff, signif.level, effect.size, desired.power, samp.sizes){
powerResult <- smgBbdRequiredSampleSize(desired.power, mu, cv, samp.sizes, effect.size, signif.level, Leff) bbd.samp.size.min <- powerResult$samp.size.min bbd.samp.size.max <- powerResult$samp.size.max power.result.bbd <- powerResult$power
params <- rateCvToAlphaBeta(mu, cv) }
Why could not find rateCvToAlphaBeta function?