denspr               package:siggenes               R Documentation

_D_e_n_s_i_t_y _E_s_t_i_m_a_t_i_o_n

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

     Estimates the density of a vector of observations by a Poisson
     regression fit to histogram counts.

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

       denspr(x, n.interval = NULL, df = 7)

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

       x: a numeric vector containing the observations for which the
          density should be estimated

n.interval: an integer specifying the number of cells for the
          histogram. If 'NULL', 'n.interval' is set to the squared root
          of the number of observations

      df: integer specifying the degrees of freedom of the natural
          cubic spline used in the Poisson regression fit

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

     A numeric vector of the same length as 'x' containing the
     estimated density for each of the observations

_R_e_f_e_r_e_n_c_e_s:

     Efron, B., and Tibshirani, R. (1996). Using specially designed
     exponential  families for density estimation. _Annals of
     Statistics_, 24, 2431-2461.

