Hadoop Online Training by Edureka

expected_margin_cfa: Expected frequencies using margins

Description Usage Arguments Details Value References Examples

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

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).
####################################### 


Search within the confreq package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.