Learn R Programming

lllcrc (version 1.2)

local.ml: Maximum likelihood estimation for fixed LLLMs

Description

A workhorse function for apply.local.ml. For a fixed log-linear model, get best fit using maximum local likelihood estimation.

Usage

local.ml(pdat, ml.meth = NULL, predictors = NULL, k)

Arguments

pdat
A design matrix with cell counts (possibly fractional) included in the column named "c".
ml.meth
A model specification such as "indep" or "indep.mono".
predictors
A character vector of predictors of the form "c1", "c2" for main effects, or "c12" for an interaction.
k
Number of lists.

Details

Specify exactly one of the two arguments predictors, ml.meth

References

Fienberg SE (1972). "The Multiple Recapture Census for Closed Populations and Incomplete $2^k$ Contingency Tables." Biometrika, 59(3), pp. 591.

Cormack RM (1989). "Log-linear models for capture-recapture." Biometrics, pp. 395-413.