R/generic_functions.R

Defines functions calc_power_ret calc_test_ret estimate

Documented in calc_power_ret calc_test_ret estimate

#' @title estimate
#' @description generic function for calculating the variance
#' @param x list with entries experiment, reference, placebo
#' @keywords internal
estimate <- function(x, Delta, ...) UseMethod("estimate")

#' @title calc_test_ret
#' @description generic function for performing the Wald-type test
#' @param x object of class negbin, poisson, exponential, binary, ...
#' @keywords internal
calc_test_ret <- function(x, Delta, data_name, ...) UseMethod("calc_test_ret")

#' @title calc_power_ret
#' @description generic function for power related calculations for
#' the Wald-type test in three-arm trials
#' @param x object of class negbin, poisson, exponential, binary...
#' @keywords internal
calc_power_ret <- function(x, Delta, allocation, n, power, sig_level, distribution, ...) UseMethod("calc_power_ret")

Try the ThreeArmedTrials package in your browser

Any scripts or data that you put into this service are public.

ThreeArmedTrials documentation built on Dec. 28, 2022, 2:06 a.m.