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

Returns random samples from a truncated normal distribution.

1 |

`N` |
Number of samples to return. |

`mu` |
A vector of length N that contains distribution means for each draw. |

`sigma` |
A vector of length N that contains distribution standard deviations for each draw. |

`a` |
Vector of length N of lower truncation points; may be -Inf. |

`b` |
Vector of length N of upper truncation point; may be Inf. |

This function is currently unstable for drawing from regions with extremely low probabilities. If this happens is should print a warning, and return a draw from a uniform distribution between a and b. See example below for how to break it.

Returns 'N' random draws.

Michael S. Pratte

hbmem

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |

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.