Generate random samples from truncated univariate and multivariate normal distributions and truncated Student-t distributions.

dtuvn | Univariate Truncated Normal Distribution |

exp_rej | TUVN exponential rejection sampling |

exp_rej_r | TUVN exponential rejection sampling |

halfnorm_rej | TUVN Half-normal rejection sampling |

halfnorm_rej_r | TUVN Half-normal rejection sampling |

lower_b | lower bound for b - normal vs. uniform |

lower_b1 | lower bound for b - half-normal vs uniform |

lower_b1_r | lower bound for b - half-normal vs uniform |

lower_b2 | bound for b - exponential vs uniform sampling |

lower_b2_r | bound for b - exponential vs uniform sampling |

lower_b_r | lower bound for b - normal vs. uniform |

norm_rej | TUVN normal rejection sampling |

norm_rej_r | TUVN normal rejection sampling |

rtmvn | Truncated Multivariate Normal Distribution |

rtmvn_gibbs | Gibbs sampler for the Truncated Multivariate Normal... |

rtmvn_r | Truncated Multivariate Normal Distribution |

rtmvt | Truncated Multivariate Student t Distribution |

rtuvn | Univariate Truncated Normal Distribution |

rtuvn_r | Univariate Truncated Normal Distribution |

sample_case1 | Sample Case 1 |

sample_case1_r | Sample Case 1 |

sample_case2 | Sample Case 2 |

sample_case2_r | Sample Case 2 |

sample_case3 | Sample Case 3 |

sample_case3_r | Sample Case 3 |

sample_case4 | Sample Case 4 |

sample_case4_r | Sample Case 4 |

sample_case5 | Sample Case 5 |

sample_case5_r | Sample Case 5 |

sample_tuvsn | Full Rejection sampling steps |

sample_tuvsn_r | Full Rejection sampling steps |

unif_rej | TUVN uniform rejection sampling |

unif_rej_r | TUVN uniform rejection sampling |

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.