train_model.manova_model: Train a MANOVA Model

View source: R/manova_model.R

train_model.manova_modelR Documentation

Train a MANOVA Model

Description

This function trains a multivariate analysis of variance (MANOVA) model using the specified design.

Usage

## S3 method for class 'manova_model'
train_model(obj, train_dat, y, indices, ...)

Arguments

obj

An object of class manova_model.

train_dat

The training data.

y

the response variable

indices

The indices of the training data.

...

Additional arguments passed to the training method.

Value

A named numeric vector of -log(p-values) for each predictor in the MANOVA model.

Examples


  dset_info <- gen_sample_dataset(D = c(8, 8, 8), nobs = 20,
    response_type = "categorical", data_mode = "image", nlevels = 2)
  dismat <- dist(matrix(rnorm(20 * 20), 20, 20))
  rdes <- rsa_design(~ dismat, list(dismat = dismat))
  man_mod <- manova_model(rdes)
  train_model(man_mod, dset_info$dataset$train_data,
    dset_info$design$y_train,
    indices = seq_len(ncol(dset_info$dataset$train_data)))


bbuchsbaum/rMVPA documentation built on June 10, 2025, 8:23 p.m.