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
var
a numeric vector / variable.
prob
a vector of probabilities (indicating the population probabilities) of the same length
as var's amount of categories / factor levels. Use nrow(table(var)) to
determine the amount of necessary values for prob.
weights
a vector with weights, used to weight var.
Value
(insisibly) returns the object of the computed chisq.test.