pos_cfg_cfa: Possible configurations

View source: R/pos_cfg_cfa.R

pos_cfg_cfaR Documentation

Possible configurations

Description

Calculates all possible configuartions for some variables with different numbers of categories.

Usage

pos_cfg_cfa(kat, fact = FALSE)

Arguments

kat

a numerical vector containing kardinal numbers, giving the number of categories for each variable. So the length of this numerical vector represents the number of variables.

fact

logical, default is (fact=FALSE). If this argument is set to (fact=TRUE) the result is coerced to a data.frame with factor variables.

Details

No details

Value

An object of class "matrix" or "data.frame" (depending on the argument fact) containing all possible configurations for lenght(kat) variables with the respective number of categories given as kardinal numbers in the vector kat.

References

No references in the moment

Examples

#######################################
# possible configurations for ...
# three variables with two categories each (Lienert LSD example).
pos_cfg_cfa(kat=c(2,2,2))
#######################################

confreq documentation built on Nov. 13, 2022, 9:05 a.m.