dinfo                package:evdbayes                R Documentation

_I_n_f_o_r_m_a_t_i_o_n _f_o_r _B_e_t_a _a_n_d _G_a_m_m_a _D_i_s_t_r_i_b_u_t_i_o_n_s

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

     Show means, variances and modes for beta and gamma distributions.

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

     ibeta(mean, var, shape1, shape2)
     igamma(mean, var, shape, scale)

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

mean, var: Numeric vectors giving means and variances.

shape1, shape2: Numeric vectors. See 'dbeta'.

shape, scale: Numeric vectors. See 'dgamma'.

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

     For 'ibeta', either both of 'mean' and 'var' or both of 'shape1'
     and 'shape2' must be specified. For 'igamma', either both of
     'mean' and 'var' or both of 'shape' and 'scale' must be specified.
     The pair of vectors that are passed to each function define a set
     of beta/gamma distributions. If one vector is shorter than the
     other, the shorter vector is replicated.

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

     A matrix with five columns and n rows, where n is the length of
     the longest argument. If n = 1 the dimension is dropped (i.e. a
     vector of length five is returned). The columns contain the means,
     variances, modes, and the shape/scale parameters of the specified
     distributions. If a mode is 'NA', it does not exist, or it is not
     unique, or it does not occur in the interior of the support. If an
     entire row is 'NA', the corresponding arguments do not lead to a
     valid distribution.

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

     'dbeta', 'dgamma'

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

     ibeta(shape1 = 5, shape2 = 4)
     ibeta(mean = seq(0.1,0.9,0.2), var = 0.03)
     igamma(shape=c(38.9,7.1,47), scale=c(1.5,6.3,2.6))

