train_model.manova_model | R Documentation |
This function trains a multivariate analysis of variance (MANOVA) model using the specified design.
## S3 method for class 'manova_model'
train_model(obj, train_dat, y, indices, ...)
obj |
An object of class |
train_dat |
The training data. |
y |
the response variable |
indices |
The indices of the training data. |
... |
Additional arguments passed to the training method. |
A named numeric vector of -log(p-values) for each predictor in the MANOVA model.
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.