home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / Poisson < prev    next >
Encoding:
Text File  |  1997-04-23  |  952 b   |  38 lines

  1.     
  2.     _T_h_e _P_o_i_s_s_o_n _D_i_s_t_r_i_b_u_t_i_o_n
  3.     
  4.          dpois(x, lambda)
  5.          ppois(q, lambda)
  6.          qpois(p, lambda)
  7.          rpois(n, lambda)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.                x : vector of (positive) quantiles.
  12.     
  13.                p : vector of probabilities.
  14.     
  15.                n : number of random values to return.
  16.     
  17.           lambda : vector of positive means.
  18.     
  19.     _D_e_s_c_r_i_p_t_i_o_n:
  20.     
  21.          These functions provide information about the Poisson
  22.          distribution with parameter lambda.  dpois gives the
  23.          density, ppois gives the distribution function qpois
  24.          gives the quantile function and rpois generates random
  25.          deviates.
  26.     
  27.          The Poisson distribution has density
  28.     
  29.                      p(x) = lambda^x exp(-lambda)/x!
  30.     
  31.          for x = 0, 1, 2, ....
  32.     
  33.     _E_x_a_m_p_l_e_s:
  34.     
  35.          -log(dpois(0:7, lambda=1) * gamma(1+ 0:7))
  36.          Ni <- rpois(50, lam= 4); table(factor(Ni, 0:max(Ni)))
  37.     
  38.