expected_margin_cfa {confreq}R Documentation

Expected frequencies using margins

Description

Calculates the expected frequencies of counts based on the margins of the k-dimensional contingency table.

Usage

expected_margin_cfa(Pfreq, blank = NULL)

Arguments

Pfreq

Object of class "Pfreq" (see. function dat2fre).

blank

Either (1) character vector defining the pattern (with spaces between variable categories), which will be ignored for calculation of expected frequencies; or (2) a numeric vector defining the position(s) of the pattern in object of class "Pfreq", which will be ignored for calculation of expected frequencies. At default (blank=NULL) all possible pattern, as listed in object of class "Pfreq", are included for calculation of expected frequencies.

Details

only main effects are considered.

Value

An vector object giving the expected counts.

References

No references in the moment

Examples

#######################################
# expected counts for LienertLSD data example.
data(LienertLSD) # load example data
expected_margin_cfa(Pfreq = LienertLSD) # calculation of expected counts (only main effects).
####################################### 

[Package confreq version 1.6.1-1 Index]