Fits log-linear models for incomplete contingency tables, via an EM approach.
emgllmfitter(y,s,X,maxit,tol)
A list with components:
the observed table
s, the scatter vector
the design matrix
maximum EM iterations
the convergence tolerance
expected counts for the full (unobserved) table
nrow(X)
length(y)
ncol(X)-1
expected counts
is the observed contingency table.
is a vector of indices, one for each cell of the full (unobserved)
contingency table, representing the appropriate cell of y
is the design matrix.
is the number of EM iterations.
is the convergence criterion for the LR criterion.
The call to Andreas Borg's C code that fits the model by EM/IPF. The algorithm follows the approach in Haber (1984).
Haber M (1984). AS207: Fitting a general log-linear model. Appl Statist 33:358-362.