lcvplot                package:locfit                R Documentation

_C_o_m_p_u_t_e _t_h_e _l_i_k_e_l_i_h_o_o_d _c_r_o_s_s-_v_a_l_i_d_a_t_i_o_n _p_l_o_t.

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

     The 'lcvplot' function loops through calls to the 'lcv' function
     (and hence to 'link{locfit}'), using a different smoothing
     parameter for each call. The returned structure contains the
     likelihood cross validation statistic for each fit, and can be
     used to produce an LCV plot.

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

     lcvplot(..., alpha)

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

     ...: arguments to the 'lcv', 'locfit' functions.

   alpha: Matrix of smoothing parameters. The 'aicplot' function loops
          through calls to 'lcv', using each row of 'alpha' as the
          smoothing parameter in turn. If 'alpha' is provided as a
          vector, it will be converted to a one-column matrix, thus
          interpreting each component as a nearest neighbor smoothing
          parameter.

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

     An object with class '"gcvplot"', containing the smoothing
     parameters and LCV scores. The actual plot is produced using
     'plot.gcvplot'.

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

     'locfit', 'locfit.raw', 'gcv', 'lcv', 'plot.gcvplot'

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

     data(ethanol)
     plot(lcvplot(NOx~E,data=ethanol,alpha=seq(0.2,1.0,by=0.05)))

