Learn R Programming

confreq (version 1.6.1-1)

pos_cfg_cfa: Possible configurations

Description

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

Usage

pos_cfg_cfa(kat, fact = FALSE)

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.

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

References

No references in the moment

Examples

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

Run the code above in your browser using DataLab