Nothing
## * Documentation S4BuysePower
#' @name S4BuysePower-class
#' @title Class "S4BuysePower" (output of BuyseTest)
#'
#' @description A \code{\link{powerBuyseTest}} output is reported in a \code{S4BuysePower} object.
#'
#' @seealso
#' \code{\link{powerBuyseTest}} for the function computing generalized pairwise comparisons. \cr
#' \code{\link{S4BuysePower-summary}} for the summary of the BuyseTest function results
#'
#' @keywords classes S4BuysePower-class
#' @author Brice Ozenne
## * Class S4BuysePower
#' @rdname S4BuysePower-class
#' @exportClass S4BuysePower
setClass(
Class = "S4BuysePower",
representation(
alternative = "character",
method.inference = "character",
conf.level = "numeric",
endpoint = "character",
null = "numeric",
n.rep = "numeric",
results = "data.table",
threshold = "numeric",
restriction = "numeric",
type = "character"
)
)
## * Initialize S4BuysePower objects
methods::setMethod(
f = "initialize",
signature = "S4BuysePower",
definition = function(.Object,
alternative,
method.inference,
conf.level,
endpoint,
null,
n.rep,
results,
threshold,
restriction,
type){
.Object@alternative <- alternative
.Object@method.inference <- method.inference
.Object@conf.level <- conf.level
.Object@endpoint <- stats::setNames(endpoint,paste0(endpoint,ifelse(!is.na(restriction),paste0("_r",restriction),""),ifelse(threshold>1e-12,paste0("_t",threshold),"")))
.Object@null <- null
.Object@n.rep <- n.rep
.Object@results <- results
.Object@threshold <- threshold
.Object@restriction <- restriction
.Object@type <- type
## validObject(.Object)
return(.Object)
})
## * Constructor S4BuysePower objects
S4BuysePower <- function(...) new("S4BuysePower", ...)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.