lme_mass_fit_Rgw: Mass-univariate linear mixed-effects model fitting using...

View source: R/lme_mass_fit_Rgw.R

lme_mass_fit_RgwR Documentation

Mass-univariate linear mixed-effects model fitting using spatially homogeneous regions

Description

Mass-univariate linear mixed-effects model fitting using spatially homogeneous regions

Usage

lme_mass_fit_Rgw(
  X,
  Zcols,
  Y,
  ni,
  Th0,
  Rgs,
  Surf,
  fname = NA,
  Dtype = "euc",
  sptm = "exp",
  prs = 1,
  e = 0.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

Th0

Output from lme_mass_fit_init

Rgs

Output from lme_mass_RgGrow

Surf

Spherical surface from lme_readsurf

fname

(currently ignored)

Dtype

Distance (default: euclidean)

sptm

Spatial measure (default: exp)

prs

Number of cores for parallel computing (default: 1)

e

Tolerance (default: 10^-1)

Value

This function returns a list of lists, with entries st (=status) and stats, with the following entries: Bhat, CovBhat, phisqhat, Dhat, Zcols, invEI, Pth, Qthth, lreml

Examples

## Not run: Surf <- lme_readsurf(...)
## Not run: FitInit <- lme_mass_fit_init(...)
## Not run: RgGrow <- lme_mass_RgGrow(...)
## Not run: fitRgw <- lme_mass_fit_Rgw(X, Zcols, Y, ni, FitInit$Theta0, RgGrow$Regions, Surf)

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