Learn R Programming

systemicrisk (version 0.4.2)

Model.p.BetaPrior: Model for a Random One-dimensional p

Description

Assumes a Beta prior on the one-dimensional link existence probabilities p. This model has a one-dimensional parameter.

Usage

Model.p.BetaPrior(n, shape1 = 1, shape2 = 1)

Arguments

n

dimension of matrix.

shape1

first parameter of Beta prior. Default 1.

shape2

second parameter of Beta prior. Default 1.

Value

the resulting model.

Examples

Run this code
# NOT RUN {
m <- Model.p.BetaPrior(5)
m$matr(m$rtheta())
# }

Run the code above in your browser using DataLab