Description Usage Arguments Details Value References Examples

Calculates the likelihod ratio chi-square statistic based on observed and expected counts.

1 | ```
lr(observed, expected)
``` |

`observed` |
a vector giving the observed frequencies. |

`expected` |
a vector giving the expected frequencies. |

No details in the moment.

numeric giving the likelihood ratio chi-square statistic.

Stemmler, M. (2014). *Person-Centered Methods – Configural Frequency Analysis (CFA) and Other Methods for the Analysis of Contingency Tables*. Cham Heidelberg New York Dordrecht London: Springer.

1 2 3 4 5 6 7 8 | ```
#######################################
######### some examples ########
data(newborns)
newborns
designmatrix <- design_cfg_cfa(kat=c(2,2)) # generate an designmatrix (only main effects)
observed <- newborns[,3] # extract observed counts
expected <- expected_cfa(des=designmatrix, observed=observed) # calculation of expected counts
lr(observed,expected) # calculation of the likelihood ratio chi-square statistic
``` |

confreq documentation built on May 29, 2017, 5:46 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.