dice-package              package:dice              R Documentation

_C_a_l_c_u_l_a_t_e _P_r_o_b_a_b_i_l_i_t_i_e_s _o_f _V_a_r_i_o_u_s _D_i_c_e-_R_o_l_l_i_n_g _E_v_e_n_t_s

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

     This package provides utilities to calculate the probabilities of
     various dice-rolling events, such as the probability of rolling
     six four-sided dice and getting a 4, a 3, and either a 1 or 2
     among the six rolls (in any order) or the probabilities of each
     possible total of rolling five six-sided dice, dropping the lowest
     two rolls, and summing the remaining dice.

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


       Package:  dice
       Type:     Package
       Version:  1.0
       Date:     2007-03-24
       License:  GPL version 2 or newer

     Although initially conceived as a utility for role-playing game
     calculations, functions in the 'dice' package can be used to
     answer questions in any dice-rolling context (e.g., calculating
     probabilities for the game of craps, solving problems for an
     introductory probability course, etc.)

     The 'dice' package requires the 'gtools' package.

     For a complete list of functions, use 'library(help="dice")'.

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

     Dylan Arena <dylanarena1@gmail.com>

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

     The implementation for the getTotalProbs function originated with
     the ideas presented in the following forum thread:

     <URL: http://www.enworld.org/showthread.php?t=56352&page=1&pp=40>

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

     getOutcomeProb(ndice = 6,
                    nsides = 4,
                    outcomeList = list(4, 3, c(1,2)))

     getTotalProbs(ndice = 5,
                   nsides = 6,
                   nkept = 3)

