hgmat: Calculate H and G matrix

View source: R/hgmat.R

hgmatR Documentation

Calculate H and G matrix

Description

See details in Parsons N., et al. "A generalized estimating equation method for fitting autocorrelated ordinal score data with an application in horticultural research." Journal of the Royal Statistical Society: Series C (Applied Statistics) 55.4 (2006): 507-524.

Usage

hgmat(mod, smat, X, modtype, diffmeth, alpha, corrmod, h)

Arguments

mod

the fitted model with independence working correlation structure

smat

the matrix of correlations among elements in $Z_it$

X

the design matrix

modtype

a character string specifying the model type (CPM or GLM)

diffmeth

a character string specifying the method used for estimation of alpha

alpha

the association parameter

corrmod

the specified working correlation structure

h

a numeric value of options to control the fitting algorithm

Value

A list including the working correlation matrix, H, G, and derivatives of H and G


YuqiTian35/cpmgee documentation built on Aug. 6, 2023, 4:30 a.m.