Learn R Programming

confreq (version 1.6.1-1)

expected_margin_cfa: 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)

Value

An vector object giving the expected counts.

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.

References

No references in the moment

Examples

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

Run the code above in your browser using DataLab