aicplot                package:locfit                R Documentation

_C_o_m_p_u_t_e _a_n _A_I_C _p_l_o_t.

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

     aicplot(..., alpha)

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

     ...: arguments to the `aic', `locfit' functions.

   alpha: Matrix of smoothing parameters. The `aicplot' function loops
          through calls to `aic', 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 AIC scores. The actual plot is produced using
     `plot.gcvplot'.

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

     `locfit', `locfit.raw', `gcv', `aic', `plot.gcvplot'

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

     data(morths)
     plot(aicplot(deaths~age,weights=n,data=morths,family="binomial",alpha=seq(0.2,1.0,by=0.05)))

