Skip to contents

This function creates a MANOVA model object containing an `mvpa_dataset` instance and a `manova_design` instance.

Usage

manova_model(dataset, design)

Arguments

dataset

An mvpa_dataset instance.

design

A manova_design instance.

Value

A MANOVA model object with class attributes "manova_model" and "list".

Details

The function takes an `mvpa_dataset` instance and a `manova_design` instance as input, and returns a MANOVA model object. The object is a list that contains the dataset and the design with class attributes "manova_model" and "list". This object can be used for further multivariate statistical analysis using the MANOVA method.

Examples

# Create a MANOVA model
dataset <- create_mvpa_dataset(data_matrix, labels, subject_ids)
#> Error in create_mvpa_dataset(data_matrix, labels, subject_ids): could not find function "create_mvpa_dataset"
formula <- y ~ x1 + x2
data_list <- list(y = dissimilarity_matrix_y, x1 = dissimilarity_matrix_x1, x2 = dissimilarity_matrix_x2)
#> Error in eval(expr, envir, enclos): object 'dissimilarity_matrix_y' not found
design <- manova_design(formula, data_list)
#> Error in eval(expr, envir, enclos): object 'data_list' not found
manova_model_obj <- manova_model(dataset, design)
#> Error in eval(expr, envir, enclos): object 'dataset' not found