flat.log.linear: Fit an LLM

Description Usage Arguments Details Value Author(s)

View source: R/user.R

Description

Fit a log-linear model. This is a wrapper function for our own variant of the glm function, pirls.

Usage

1
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?

Details

Maximum likelihood estimation is used, conditioning on the observed population as if it were the full population.

Value

A vector of log-linear coefficients. The first coefficient is the intercept, and the rest correspond (in order) with the model.terms argument

Author(s)

Zach Kurtz


lllcrc documentation built on May 2, 2019, 3:34 p.m.