Description Usage Arguments Details Value References Examples

View source: R/chi_local_test_cfa.R

Calculates the local chi-square test based on obseved and expected frequencies.

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

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

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

No details in the moment.

a list with chi-square statistic and corresponding degrees of freedom an p-value.

No references in the moment

1 2 3 4 5 6 7 8 | ```
#######################################
# first calculate expected counts for LienertLSD data example.
designmatrix<-design_cfg_cfa(kat=c(2,2,2)) # generate an designmatrix (only main effects)
data(LienertLSD) # load example data
observed<-LienertLSD[,4] # extract observed counts
expected<-expected_cfa(des=designmatrix, observed=observed) # calculation of expected counts
chi_local_test_cfa(observed,expected)
#######################################
``` |

confreq documentation built on May 19, 2017, 3:34 p.m.

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

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

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

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.