expected_cfa {confreq} | R Documentation |
Expected frequencies with glm
Description
Calculates the expected frequencies of counts using log liniear model.
Usage
expected_cfa(des, observed, family = poisson(), intercept = FALSE, ...)
Arguments
des |
a designmatrix (object of class |
observed |
a integer vector with |
family |
argument passed to |
intercept |
argument passed to |
... |
aditional arguments optional passed to |
Details
No details
Value
An vector object giving the expected counts.
References
No references in the moment
Examples
#######################################
# 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_cfa(des=designmatrix, observed=observed) # calculation of expected counts
#######################################
[Package confreq version 1.6.1-1 Index]