lme_fit_FS: Fit a univariate linear mixed-effects model using Fisher...

View source: R/lme_fit_FS.R

lme_fit_FSR Documentation

Fit a univariate linear mixed-effects model using Fisher scoring

Description

Fit a univariate linear mixed-effects model using Fisher scoring

Usage

lme_fit_FS(X, Zcols, y, ni, e = 10^-3)

Arguments

X

Design matrix

Zcols

Vector of random effect indices in design matrix

y

Outcome variable

ni

Vector indicating the repeated observations of each subject

e

Tolerance (default: 10^-3)

Value

The function returns stats, a list of statistics, with the following entries: Bhat, CovBhat, bihat, Covbihat, phisqhat, SIGMA, W, Dhat, X, Zcols, re, ni, and lreml.

Examples

## Not run: stats <- lme_fit_FS(X, Zcols, y, ni)

Deep-MI/fslmer documentation built on Jan. 24, 2025, 11:24 p.m.