hgmat_cov: Calculate H and G matrix

View source: R/hgmat_cov.R

hgmat_covR 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. This function is used to calculate the covariance matrix

Usage

hgmat_cov(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 H and G


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