Description Usage Arguments Details Value See Also Examples

A function to generate a random sample of hazard rates from a CPP prior distribution.

1 | ```
CPPpriorSample(ss = 1, hyp = CPPpriorElicit())
``` |

`ss` |
requested sample size |

`hyp` |
list of hyperparameters (as generated by |

A random sample of `ss`

hazard rates is extracted from the CPP prior distribution identified by `hyp`

.

A list with four components:

`hyp` |
list of hyperparameters identifying the CPP prior distribution from which the sample was extracted (copy of the input argument) |

`sgm` |
matrix with |

`xi0` |
matrix with |

`csi` |
matrix with |

1 2 3 4 5 6 7 8 | ```
# set RNG seed (for example reproducibility only)
set.seed(1234)
# select a CPP prior distribution
hypars<-CPPpriorElicit(r0 = 0.1, H = 1, T00 = 50, M00 = 2)
# generate a sample of ten hazard rates
prior<-CPPpriorSample(ss = 10, hyp = hypars)
``` |

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.