Description Usage Arguments Value Examples
Calculates explained variance per component of the original data sets X and Y.
1 | explained_variance(plsr_obj)
|
plsr_obj |
A plsr object |
A list containing the elements ExpVarX and ExpVarY, which contain the explained variances for X and Y respectively
1 2 | plsr_object = pls(rating_data,tracking_data,10,10)
explained_variance(plsr_object)
|
Be aware that plsr 0.0.1 contains experimental and partly untested code.
Use cautiously.
Attaching package: ‘plsr’
The following object is masked from ‘package:stats’:
loadings
Permuting...
========
================
========================
================================
========================================
================================================
========================================================
================================================================
========================================================================
================================================================================
Done!
Bootstrapping...
Done!
Warning messages:
1: In pls(rating_data, tracking_data, 10, 10) :
Bootstrapping functionality is still untested! No guarantee for correctness! Use with extra care.
2: In pls(rating_data, tracking_data, 10, 10) :
Some p-values are not stable under this precision.
Try to increase the number of permutation steps (n_perm).
$ExpVarX
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 0.4920539 0.6785452 0.8424196 0.8931537 0.9536591 0.9878328 1
$ExpVarY
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 0.170713 0.4927914 0.692218 0.7401846 0.7817284 0.8000143 0.8304473
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.