expected_cfa {confreq} | R Documentation |
Calculates the expected frequencies of counts using log liniear model.
expected_cfa(des, observed, family = poisson(), intercept = FALSE, ...)
des |
a designmatrix (object of class |
observed |
a integer vector with |
family |
argument passed to |
intercept |
argument passed to |
... |
aditional arguments optional passed to |
No details
An vector object giving the expected counts.
No references in the moment
#######################################
# 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
#######################################