Bort                  package:VGAM                  R Documentation

_T_h_e _B_o_r_e_l-_T_a_n_n_e_r _D_i_s_t_r_i_b_u_t_i_o_n

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

     Density and random generation for the Borel-Tanner distribution.

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

     dbort(x, Qsize=1, a=0.5, log=FALSE)
     rbort(n, Qsize=1, a=0.5)

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

       x: vector of quantiles.

       n: number of observations. Must be a positive integer of length
          1.

Qsize, a: See 'borel.tanner'. 

     log: Logical. If 'log=TRUE' then the logarithm of the density is
          returned.

_D_e_t_a_i_l_s:

     See 'borel.tanner', the 'VGAM' family function for estimating the
     parameter, for the formula of the probability density function and
     other details.

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

     'dbort' gives the density, 'rbort' generates random deviates.

_W_a_r_n_i_n_g:

     Looping is used for 'rbort', therefore values of 'a' close to 1
     will result in long (or infinite!) computational times. The
     default value of 'a' is subjective.

_A_u_t_h_o_r(_s):

     T. W. Yee

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

     'borel.tanner'.

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

     ## Not run: 
     qsize = 1; a = 0.5
     x = qsize:(qsize+10)
     plot(x, dbort(x, qsize, a), type="h", las=1, col="blue",
          ylab=paste("fbort(qsize=", qsize, ", a=", a, ")"),
          main="Borel-Tanner density function")
     ## End(Not run)

