scores              package:pls              R Documentation(latin1)

_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, ...)
     ## Default S3 method:
     scores(object, ...)

     loadings(object, ...)
     ## Default S3 method:
     loadings(object, ...)

     loading.weights(object)

     Yscores(object)

     Yloadings(object)

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

  object: a fitted 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.

     The default 'scores' and 'loadings' methods also handle 'prcomp'
     objects (their scores and loadings components are called 'x' and
     'rotation', resp.), and add an attribute '"explvar"' with the
     variance explained by each component, if this is available.  (See
     'explvar' for details.)

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

     A matrix with scores or loadings.

_N_o_t_e:

     There is a 'loadings' function in package 'stats'.  It simply
     returns any element named '"loadings"'.  See 'loadings' for
     details.  The function can be accessed as 'stats::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(yarn)
     plsmod <- plsr(density ~ NIR, 6, data = yarn)
     scores(plsmod)
     loadings(plsmod)[,1:4]

