bayes.rule computes the value of Bayes' Rule for given vectors of prior probabilities and likelihoods.

Arguments

prior = a vector of prior probabilities that sum to 1.0.

likelihood = a vector of likelihoods of an outcome conditioned on each hypothesis.

'bb.rec' takes current wins and losses as input and returns projected
wins and losses for a 162 game season.
ARGUMENTS:
'wins' = current wins
'losses' = current losses
'goal = 90' = goal for wins in a 162 game season.
'pct.remain = NA' = the winning percentage during the remainder of the
season that is needed to achieve the goal.  If 'pct.remain' is not NA,
then the 'goal' is recalculated as the number of wins that would occur
if 'pct.remain' is the winning percentage for the rest of the season.

bmi computes the Body Mass Index.

ARGUMENTS:  wt and ht.

Enter weight in pounds and height in inches.

Height defaults to 67 inches.

brugs.chains creates a list of chains from OpenBUGS output that was generated by calls to functions in the BRugs package.  Suppose that bugs.out is created by a call to brugs.chains.  Then bugs.out will be a list of K components.  The 1st component of bugs.out is a matrix of chains for the 1st saved parameter; ...; the j-th component is a matrix of chains for the j-th saved parameter. The last component, named bug.out$doc..BUGS, contains information about the chains, e.g., how many chains were saved for each parameter? how many iterations were computed?  what was the thinning rate?  

ARGUMENTS:

The params argument determines the parameters for which chains are extracted.  params = "*all" (default) results in the extraction of chains for all monitored parameters (nodes).  The user can specify a subset of parameters by naming the parameters.  If a parameter is indexed, e.g., x[1], x[2], x[3], then the name x specifies all indices for x (3 parameters in this case).  If the user wants only a subset of the indices, e.g., x[2] and x[3] only, then they must be specified explicitly.  

If improve.names = TRUE, the parameter names in OpenBUGS are changed to R-legal names, e.g., x[1] is changed to x.1.  If improve.names = FALSE, then the OpenBUGS names are retained.  

If include.doc = FALSE, the last component of the bugs.out output is the matrix of chains for the last parameter - the documentation component (bug.out$doc..BUGS) is omitted.  If include.doc = TRUE (default), the bug.out$doc..BUGS component is appended as the last component of the output.