scores                  package:pls                  R Documentation

_E_x_t_r_a_c_t _S_c_o_r_e_s _a_n_d _L_o_a_d_i_n_g_s _f_r_o_m _P_L_S_R _a_n_d _P_C_R _M_o_d_e_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     These functions extract score and loading matrices from fitted
     'mvr' models.

_U_s_a_g_e:

     scores(object, ...)
     ## S3 method for class 'prcomp':
     scores(object, ...)
     ## Default S3 method:
     scores(object, ...)
     loading.weights(object)
     Yscores(object)
     Yloadings(object)

_A_r_g_u_m_e_n_t_s:

  object: a fitted 'mvr' model to extract from.

     ...: extra arguments, currently not used.

_D_e_t_a_i_l_s:

     All functions extract the indicated matrix from the fitted model,
     and will work with any object having a suitably named component.
     'scores' also has a method for 'prcomp' objects (their score
     component is called 'x'). 'loadings' is in package 'stats', and is
     documented there.

_V_a_l_u_e:

     A matrix with scores or loadings.

_A_u_t_h_o_r(_s):

     Ron Wehrens and Bjrn-Helge Mevik

_S_e_e _A_l_s_o:

     'mvr', 'coef.mvr'

_E_x_a_m_p_l_e_s:

     data(NIR)
     plsmod <- plsr(y ~ X, 6, data = NIR)
     scores(plsmod)
     loadings(plsmod)[,1:4]

