Skip to main content
Skip table of contents

setCAResultsStratification

Set the stratification used to compute CA parameters statistics table. Stratification is defined by:

  • stratification covariate groups which are shared by both NCA and CA results

  • a stratification state which is specific to each task results

Usage

R
setCAResultsStratification(
  split = NULL,
  filter = NULL,
  groups = NULL,
  state = NULL
)

Arguments

split

(vector) Ordered list of splitted covariates

filter

(list< pair> >) List of paired containing a covariate name and the indexes of associated kept groups

groups

Stratification groups list

state

Stratification state

Details

For each covariate, stratification groups can be defined as a list with:

namecharactercovariate name
definitionvector(continuous) || list>(categorical)group separations (continuous) || modality sets (categorical)

A stratification state is represented as a list with:

splitvectorordered list of splitted covariates
filterlist< pair> >list of paired containing a covariate name and the indexes of associated kept groups

Examples

R
if (FALSE) {
setCAResultsStratification(split = "SEX")
setCAResultsStratification(split = c("SEX", "WEIGHT"))

setCAResultsStratification(filter = list("SEX", 1))
setCAResultsStratification(filter = list(list("SEX", 1), list("WEIGHT", c(1,3))))

setCAResultsStratification(split = "WEIGHT", filter = list(list("TRT", c(1,2))),
groups = list(list(name = "WEIGHT", definition = c(65,5, 72)), list(name = "TRT", definition = list(c("a","b"), "c", c("d","e")))))

s = getCAResultsStratification()
setCAResultsStratification(state = s$state, groups = s$groups)
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.