as207 {gllm}R Documentation

Generalized log-linear modelling by EM and iterative proportional fitting

Description

Fits log-linear models for incomplete contingency tables, via an EM approach.

Usage

as207(y,s,X,maxit,tol) 

Arguments

y is the observed contingency table.
s is a vector of indices, one for each cell of the full (unobserved) contingency table, representing the appropriate cell of y
X is the design matrix.
maxit is the number of EM iterations.
tol is the convergence criterion for the LR criterion.

Details

The call to the slightly modified AS207 Fortran code from Haber (1984).

Value

A list with components:

istop
ni
nid
nj
nk
nkp ncol(X)
ji
y
c
conv
w
v
e
f
cspr
cslr
ifault

{error indicator}

References

Haber M (1984). AS207: Fitting a general log-linear model. Appl Statist 33:358-362.


[Package gllm version 0.31 Index]