We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why could not find rateCvToAlphaBeta function?
The text was updated successfully, but these errors were encountered:
#' Converts mutation rate and coefficient of variation (CV) parameters #' to equivalent alpha and beta parameters typically used for beta-binomial. #' #' @param rate mutation rate #' @param cv coefficient of variation for mutation rate #' @return Param list containing alpha and beta rateCvToAlphaBeta <- function(rate, cv) { ab <- rate * (1-rate) / (cv*rate)^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) }
Sorry, something went wrong.
No branches or pull requests
Why could not find rateCvToAlphaBeta function?
The text was updated successfully, but these errors were encountered: