Hadley's Tools For Working With Random Variables in R

as.rv | Coerce an object to an rv. |

is.rv | Check if an object is a discrete random variable. |

moments | Compute the moments of a random variable. |

P | Compute the probability that an event occurs. |

rif | Random if. |

rsim | Simulate n random numbers from an rv. |

rv | Make a discrete random variable. |

Z | Standardise by subtracting off expectation and dividing by... |

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.