Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
plsr (read: "pleasure") is a package that provides simple to use Partial Least Squares Analysis.
It features:
The central function of the package is pls()
. Given two matrices X
and Y
with arbitrary number of variables in columns and equal number of observations in rows this function will compute the latent variables that will maximize the covariance between X
and Y
.
For example, a plsr object can be calculated like so:
library(plsr) plsr_obj=pls(X=rating_data,Y=tracking_data,n_perm=1000,n_boot=10)
Resulting latent variables and their significances can be investigated using the generic functions summary()
and plot()
:
summary(plsr_obj)
plot(plsr_obj)
plsr:::plot_perm_results(plsr_obj)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.