Skip to contents

Using GroupConditions() object and source data.frame compute a set of FrequencyTable()s for single variable

Usage

GroupedFrequencyTable(
  data,
  conditions,
  var,
  force_disjoint = FALSE,
  .all = TRUE
)

# S3 method for GroupedFrequencyTable
print(x, ...)

# S3 method for GroupedFrequencyTable
summary(object, ...)

Arguments

data

source data.frame

conditions

up to two GroupConditions objects. These objects will be passed along during creation of higher-level objects and used when normalize_scores_grouped() will be called. If two objects are provided, then intersection of groups will be made.

var

name of variable to compute GroupedFrequencyTable for

force_disjoint

It is recommended to keep it as default FALSE, unless the sample size is very big and it is completely mandatory to have the groups disjointed.

.all

should .all or .all1 and .all2 groups be generated. If they are not generated, all score normalization procedures will fail if the observation can't be assigned to any of the provided conditions (eg. because of missing data), leaving it's score as NA. Defaults to TRUE

x

A GroupedFrequencyTable object

...

further arguments passed to or from other methods.

object

A GroupedFrequencyTable object

Value

data.frame of descriptive statistcs

Details

force_exhaustive will always be checked as FALSE during the calculations. It is mandatory for validity of the created FrequencyTables

See also

plot.GroupedFrequencyTable