setkernel           package:spatialkernel           R Documentation

_S_e_l_e_c_t _S_m_o_o_t_h_i_n_g _K_e_r_n_e_l _F_u_n_c_t_i_o_n

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

     Select a kernel function for kernel regression and kernel
     smoothing.

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

       setkernel(kernel = NULL)

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

  kernel: character string giving the smoothing kernel to be used. 
          This must be one of _gaussian_, _epanechnikov_, _quadratic_,
          _quartic_, or 'NULL', and may be abbreviated to a unique
          prefix.

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

     A character string of the kernel function selected, or the kernel
     function currently being used when 'kernel' is 'NULL'.

_N_o_t_e:

     The default kernel used is _Gaussian_. Unless users want to use a
     non-default kernel, there is no need to call  'setkernel'.
     _quadratic_ is an alias for _epanechnikov_.

     'setkernel' setup kernel function for both kernel regression in
     the type-specific probability estimation and the kernel smoothing
     in the intensity function estimation.

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

     'cvloglk', 'phat' and 'lambdahat'

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

     ## Not run: 
       setkernel("e") ## Select "epanechnikov" kernel
       setkernel()    ## show the kernel currrently being used
     ## End(Not run)

