Description Usage Arguments Details Value Author(s) See Also Examples

Sets up a probability space corresponding to independent, identical experiments.

1 |

`x` |
a vector of outcomes. |

`ntrials` |
number of times to perform the experiment. |

`probs` |
vector of non-negative weights corresponding to |

The elementary experiment to be repeated consists of drawing an element of `x`

according to the probabilities contained in `probs`

. The entries of `probs`

need not sum to one, but they will be normalized before any computations. If `probs`

is not specified, the equally likely model will be assumed.

A data frame, with a `probs`

column, where `probs`

is calculated to be the probability of observing the outcome in its row under the assumption of independence and identical distribution of draws from `x`

.

G. Jay Kerns [email protected].

1 2 |

prob documentation built on May 30, 2017, 4:15 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.