TPLS {TPLSr}R Documentation

Constructor method for fitting a T-PLS model with given data X and Y.

Description

Constructor method for fitting a T-PLS model with given data X and Y.

Usage

TPLS(X, Y, NComp = 25, W = NULL, nmc = 0)

Arguments

X

Numerical matrix of predictors. Typically single-trial betas where each column is a voxel and row is observation

Y

Variable to predict. Binary 0 and 1 in case of classification, continuous variable in case of regression

NComp

(Optional) Number of PLS components to compute. Default is 25.

W

(Optional) Observation weights. By default, all observations have equal weight.

nmc

(Optional) 'no mean centering'. Default is 0. If 1, T-PLS will skip mean-centering. This option is only provided in case you already mean-centered the data and want to save some memory usage.

Value

A TPLS object that contains the following attributes. Most of the time, you won't need to access the attributes.

See vignettes for tutorial


[Package TPLSr version 1.0.4 Index]