lme_mass_fit_vw: Mass-univariate linear mixed-effects model fitting

View source: R/lme_mass_fit_vw.R

lme_mass_fit_vwR Documentation

Mass-univariate linear mixed-effects model fitting

Description

Mass-univariate linear mixed-effects model fitting

Usage

lme_mass_fit_vw(
  X,
  Zcols,
  Y,
  ni,
  maskvtx = NA,
  prs = 1,
  e = 10^-1,
  Xrows = NA,
  numcore = 1
)

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

maskvtx

Indices (one-based) for vertices to include in the analysis (default: all)

prs

(currently ignored)

e

Tolerance (default: 10^-1)

Xrows

Internal parameter (default: NA)

numcore

Number of cores for parallel computing (default: 1)

Value

This function returns a list with the following parameters: Bhat, CovBhat, phisqhat, Dhat, X, Zcols, invEI, Pth, Qthth, lreml.

Examples

## Not run: stats <- lme_mass_fit_vw(X, Zcols, Y, ni, numcore=1)

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