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 / GammaDist < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.1 KB  |  45 lines

  1.     
  2.     _T_h_e _G_a_m_m_a _D_i_s_t_r_i_b_u_t_i_o_n
  3.     
  4.          dgamma(x, shape, scale=1)
  5.          pgamma(q, shape, scale=1)
  6.          qgamma(p, shape, scale=1)
  7.          rgamma(n, shape, scale=1)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.              x,q : vector of quantiles.
  12.     
  13.                p : vector of probabilites.
  14.     
  15.                n : number of observations.
  16.     
  17.     shape, scale : shape and scale parameters.
  18.     
  19.     _V_a_l_u_e:
  20.     
  21.          These functions provide information about the gamma
  22.          distribution with parameters shape and scale.  dgamma
  23.          gives the density, pgamma gives the distribution func-
  24.          tion qgamma gives the quantile function and rgamma gen-
  25.          erates random deviates.
  26.     
  27.          The gamma distribution with parameters shape EQUALS a
  28.          and scale EQUALS b  has density
  29.     
  30.                 f(x) = 1/(b^a Gamma(a)) x^(a-1) e^-(x/b)
  31.     
  32.          for x > 0 , a > 0 and b > 0 .
  33.     
  34.     _S_e_e _A_l_s_o:
  35.     
  36.          gamma.
  37.     
  38.     _E_x_a_m_p_l_e_s:
  39.     
  40.          -log(dgamma(1:4, shape=1))
  41.          p <- (1:9)/10
  42.          pgamma(qgamma(p,shape=2), shape=2)
  43.          1 - 1/exp(qgamma(p, shape=1))
  44.     
  45.