hanatLmer: linear mixed effects model applied to every item in an...

View source: R/minc_hierarchical_anatomy.R

hanatLmerR Documentation

linear mixed effects model applied to every item in an anatomical tree

Description

See anatLmer for more detail

Usage

hanatLmer(formula, data, anatTree, ...)

Arguments

formula

The model formula

data

The data frame containing the right side of the formula

anatTree

The anatomical tree

...

Extra options (REML, control of parallel execution, etc.) passed on to anatLmer

Details

The volumes inside the anatomical hierarchy and the data must be of the same length and ordering.

Value

The anatomical tree with the model information added

Examples

## Not run: 
vols <- addVolumesToHierarchy(hdefs, allvols)
hLm <- hanatLmer(~Sex + (1|ID), gf, vols)

## End(Not run)

Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.