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

marg.hom

Marginal Homogeneity Models


Description

marg.hom fits a marginal homogeneity model to a contingency table that has two margins of equal size.

Usage

marg.hom(freq, marg1, marg2)

Arguments

freq

Vector of frequencies

marg1

Factor variable for the first margin

marg2

Factor variable for the second margin

Value

A list containing the call, the model, the deviance, the degrees of freedom, the aic, the fitted values, and the residuals is returned.

Author(s)

J.K. Lindsey

Examples

# 4x4x2 table in Freq, with margins indexed by Left and Right
Freq <- rpois(32,10)
Left <- gl(4,1,32)
Right <- gl(4,4,32)
marg.hom(Freq, Left, Right)

repeated

Non-Normal Repeated Measurements Models

v1.1.2
GPL-2
Authors
Bruce Swihart [cre, aut], Jim Lindsey [aut] (Jim created this package, Bruce is maintaining the CRAN version), T.R. Ten Have [ctb, cph] (Wrote Logit_bin_nest.f90 (in binnest.f).), Richard Cook [ctb, cph] (Wrote calcs.c, calcs.h, calcs1.c, calcs1.h, calcs2.c, calcs2.h, calcs3.c, calcs3.h, calcs4.c, calcs4.h; defs.h; gaps.c, gaps.h.), Iain MacDonald [ctb, cph] (Wrote chidden.f, cphidden.f, hidden.f.), Walter Zucchini [ctb, cph] (Wrote chidden.f, cphidden.f, hidden.f.), Burton Garbow [ctb, cph] (Wrote eigen.f.), Euginia Zharichenko [ctb, cph] (Wrote logitord.f.)
Initial release

We don't support your browser anymore

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