msca: Multilevel Simultaneous Component Analysis (MSCA)

View source: R/msca.R

mscaR Documentation

Multilevel Simultaneous Component Analysis (MSCA)

Description

Multilevel Simultaneous Component Analysis (MSCA).

Usage

msca(X, persID)

Arguments

X

a data table with structure ((I x K) x J), see details for more information

persID

vector length (IxK) person ids (numeric e.g. for the situation with 4 samples per person 1 1 1 1 2 2 2 2 3 3 3 3, or factor)

Details

X needs to have the following data table structure ((I x K) x J). Where I are the individuals, J are the variables, and K are samples of an individual.

Note: msca can NOT handle NA's!

Based on the algorithm Jansen et al. ANALYTICA CHIMICA ACTA (2005) 530(2):173-183 Based on MatLab code available here http://www.bdagroup.nl/content/Downloads/software/software.php

Value

A data frame with the following structure :

$between$data

table used for the between-individual level

$between$scores

between-individual scores

$between$loadings

between-individual loadings

$between$percexp

percentage of variation explained in the between-individual model

$within$data

table used for the within-individual level

$within$scores

within-individual scores

$within$loadings

within-individual loadings

$within$percexp

percentage of variation explained in the within-individual model

Author(s)

E. Nevedomskaya

References

Jansen et al. ANALYTICA CHIMICA ACTA (2005) 530(2):173-183


ricoderks/Rcpm documentation built on May 18, 2022, 7:49 a.m.