MGEE: Function of a Generalized Estimating Equation (GEE) Model

View source: R/functions_mar_select_fill_20240805.R

MGEER Documentation

Function of a Generalized Estimating Equation (GEE) Model

Description

The function is used to calculate a empirical MSE minimization criterion (EMMC) value in the "Selected.GEE" function.

Usage

MGEE(id, y, x, lod, substitue, corstr, typetd, maxiter)

Arguments

id

A column matrix of subject IDs. The number of rows is the total number of observations. Data must be sorted by IDs.

y

A column matrix of the observed outcome values or responses.

x

A matrix of covariate values, for which the number of columns is the number of covariates.

lod

A numeric value of limit of detection (LOD).

substitue

A character string specifying the substitution approach, including "None", "LOD", "LOD2", "LODS2", "BetaMean", "BetaGM", "MIWithID", "MIWithIDRM", and "QQplot".

corstr

A character string specifying the working correlation structure, given by either "exchangeable" or "AR-1".

typetd

An atomic vector specifying the types of time-dependent covaraites. The length of this vector is the number of regression paramenters, including the intercept. "1" is assigned to any time-indepednet covariates or covariates in a cluster study.

maxiter

The maximum number of iterations.

Value

An object of class "MGEE".


marlod documentation built on June 8, 2025, 10:32 a.m.