Rdocumentation
powered by
Learn R Programming
lllcrc (version 1.2)
flat.log.linear: Fit an LLM
Description
Fit a log-linear model. This is a wrapper function for our own variant of the
glm
function,
pirls
.
Usage
flat.log.linear(pop, model.terms, rasch = FALSE)
Arguments
pop
The CRC data as a data frame.
model.terms
The columns of the standard design matrix to include in the model. For example, "c1", "c2" for main effects, and "c12" for interactions.
rasch
Logical: Is this the Rasch model?
Value
A vector of log-linear coefficients. The first coefficient is the intercept, and the rest correspond (in order) with the
model.terms
argument
Details
Maximum likelihood estimation is used, conditioning on the observed population as if it were the full population.