Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ZOLD-hllm

Old: Hierarchical log-linear models


Description

NOTICE: THIS FUNCTION IS DEFUNCT. PLEASE USE THE gRim PACKAGE FOR HIERARCHICAL LOG LINEAR MODELS.

An implementation of hierarchical log-linear models using the framework of gRbase. A model object is defined using hllm, fitted using fit (which calls loglm) and a model search performed using stepwise. The models may be displayed and manipulated using the gRbase.

Usage

hllm(formula = ~.^1, gmData, marginal)
## S3 method for class 'hllm'
fit(object, engine="loglm", ...)

Arguments

formula

an object of class formula. The right hand side of the formula is a list of the generators separated by +. A generator is specified by variable names with separated by *. Commonly used models have short hand notations: saturated model (~.^.), main effects (~.^1), all k'th order interactions (~.^k).

gmData

an object of class gmData.

marginal

an optional argument specifying a subset of the variables from the gmData object.

object

A hllm object

.

engine

Definining the fitting engine. For hllm objects only "loglm" is implemented.

...

Additional arguments

Value

hllm returns an object of class hllm, inheriting from the superclass gModel.

Author(s)

Søren Højsgaard, sorenh@math.aau.dk,
Claus Dethlefsen, cld@rn.dk

See Also


gRbase

A Package for Graphical Modelling in R

v1.8-6.7
GPL (>= 2)
Authors
Søren Højsgaard <sorenh@math.aau.dk>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.