S4BuyseTest-nobs {BuyseTest}R Documentation

Sample Size for Class "S4BuyseTest"

Description

Display the sample size in each treatmnet arm as well as the number of pairs.

Usage

## S4 method for signature 'S4BuyseTest'
nobs(object, strata = FALSE, simplify = TRUE, ...)

Arguments

object

an R object of class S4BuyseTest, i.e., output of BuyseTest

strata

[character vector] the strata relative to which the number of pairs should be output. Can also be "global" or FALSE to output the total number of pairs (i.e. across all strata), or TRUE to output each strata-specific number of pairs.

simplify

[logical] should the result be coerced to the lowest possible dimension?

...

no used, for compatibility with the generic method.

Value

A vector (when argument strata is FALSE) or a matrix (when argument strata is TRUE). In the latter case each line correspond to a strata.

Author(s)

Brice Ozenne


[Package BuyseTest version 3.0.2 Index]