View source: R/binomial_test_cfa.R
binomial_test_cfa | R Documentation |
Calculates the (exact) binomial test based on obseved, expected frequencies an the total number of observations.
binomial_test_cfa(observed, expected, ntotal = sum(observed))
observed |
a vector giving the observed frequencies. |
expected |
a vector giving the expected frequencies. |
ntotal |
optional a numeric giving the total number of observations. By default ntotal is calculated as |
No details
a numeric giving the p-value.
No references in the moment
####################################### # 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 binomial_test_cfa(observed,expected) #######################################
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.