Density, distribution function, quantile function, and random generation for the normal distribution truncated at (lower, upper).

1 2 3 4 5 6 7 | ```
rnorm_trunc(n, mean, sd, lower, upper)
dnorm_trunc(x, lower = -Inf, upper = Inf, mean = 0, sd = 1, log = F)
pnorm_trunc(q, mean, sd, lower, upper)
qnorm_trunc(p, mean, sd, lower, upper)
``` |

`n` |
number of variates to generate |

`mean` |
underlying distribution mean |

`sd` |
underlying distribution sd |

`lower` |
lower truncation bound |

`upper` |
upper truncation bound |

`x` |
vector of quantiles |

`log` |
return logarithm |

`q` |
vector of quantiles |

`p` |
vector of probabilities |

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.