ash1                   package:ash                   R Documentation

_u_n_i_v_a_r_i_a_t_e _A_S_H

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

     Computes univariate averaged shifted histogram (polynomial kernel)

_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)=uniform;  (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

