Learn R Programming

BuyseTest (version 3.0.5)

S4BuyseTest-nobs: 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 S4BuyseTest
nobs(object, strata = FALSE, simplify = TRUE, ...)

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.

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.

Author

Brice Ozenne