cpar                 package:locfit                 R Documentation

_C_o_n_d_i_t_i_o_n_a_l_l_y _p_a_r_a_m_e_t_r_i_c _t_e_r_m _f_o_r _a _L_o_c_f_i_t _m_o_d_e_l.

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

     A term entered in a 'locfit' model formula using 'cpar' will
     result in a fit that is conditionally parametric. Equivalent to
     'lp(x,style="cpar")'.

     This function is presently almost deprecated. Specifying a
     conditionally parametric fit as 'y~x1+cpar(x2)' wil no longer
     work; instead, the model is specified as
     'y~lp(x1,x2,style=c("n","cpar"))'.

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

     cpar(x,...)

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

       x: numeric variable.

     ...: Other arguments to 'link{lp}()'.

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

     'locfit'

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

     data(ethanol, package="locfit")
     # fit a conditionally parametric model
     fit <- locfit(NOx ~ lp(E, C, style=c("n","cpar")), data=ethanol)
     plot(fit)
     # one way to force a parametric fit with locfit
     fit <- locfit(NOx ~ cpar(E), data=ethanol)

