Learn R Programming

sjPlot (version 1.7)

chisq_gof: Performs a Chi-square goodness-of-fit-test

Description

Performs a Chi-square goodness-of-fit-test

Usage

chisq_gof(var, prob, weights = NULL)

Arguments

Value

(insisibly) returns the object of the computed chisq.test.

See Also

mwu, levene_test, wilcox.test, ks.test, kruskal.test, t.test, chisq.test, fisher.test, ks.test

Examples

Run this code
data(efc)
# differing from population
chisq_gof(efc$e42dep, c(0.3,0.2,0.22,0.28))
# equal to population
chisq_gof(efc$e42dep, prop.table(table(efc$e42dep)))

Run the code above in your browser using DataLab