

ash1(ash)                                    R Documentation

_C_o_m_p_u_t_e_s _u_n_i_v_a_r_i_a_t_e _a_v_e_r_a_g_e_d _s_h_i_f_t_e_d _h_i_s_t_o_g_r_a_m _(_p_o_l_y_n_o_m_i_a_l
_k_e_r_n_e_l_)

_U_s_a_g_e_:

     ash1(bins, m, kopt)

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

    bins: (input list) `$nc'=integer vector of bin counts
          and `$ab'=bin interval

       m: (input) optional integer smoothing parameter;
          default=5.

    kopt: (input) vector of length 2 specifying the kernel,
          which is proportional to ( 1 - abs(i/m)^kopt(1)
          )i^kopt(2); (2,2)=biweight (default);  (0,0)=uni-
          form;  (1,0)=triangle; (2,1)=Epanechnikov;
          (2,3)=triweight.

_V_a_l_u_e_:

     returns structure suitable for input to `plot' dd

     x=t: vector of bin center locations

     y=f: vector of ash estimates

     ier: 0=normal exit; 1=estimate nonzero outside interval
          ab

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

     `bin1'

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

     x <- rnorm(100)         # data
     f <- ash1(bin1(x,nbin=50),5) # compute ash estimate
     plot( f , type="l" )    # line plot of estimate

