# Expected frequencies using margins

### Description

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

### Usage

1 | ```
expected_margin_cfa(Pfreq, blank = NULL)
``` |

### Arguments

`Pfreq` |
Object of class "Pfreq" (see. function |

`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 |

### Details

only main effects are considered.

### Value

An vector object giving the expected counts.

### References

No references in the moment

### Examples

1 2 3 4 5 | ```
#######################################
# expected counts for LienertLSD data example.
data(LienertLSD) # load example data
expected_margin_cfa(Pfreq = LienertLSD) # calculation of expected counts (only main effects).
#######################################
``` |