prior | R Documentation |

Constructor for `bayesPO_prior`

objects, which is used in the
`bayesPO_fit`

function. The generated prior is so that Beta, Delta
and LambdaStar are indepdendent a priori.

```
prior(beta, delta, lambdaStar)
```

`beta` |
An S4 object whose class inherits from |

`delta` |
An S4 object whose class inherits from |

`lambdaStar` |
An S4 object whose class inherits from |

A `bayesPO_prior`

object with the adequate slots. It is ready to
be included in a model via the `bayesPO_model`

function.

`fit_bayesPO`

, `NormalPrior`

,
`GammaPrior`

and `bayesPO_model`

.

```
# Let us say there are 3 intensity covariates and 4 observability covariates.
# One more element is included in both sets due to the intercepts.
new_prior <- prior(
NormalPrior(rep(0, 4), 10 * diag(4)),
NormalPrior(rep(0, 5), 10 * diag(5)),
GammaPrior(0.0001, 0.0001)
)
```

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.