bsp: Define a Beta-Stacy Process

Description Usage Arguments Details Value Examples

Description

Define a Beta-Stacy Process

Usage

1
bsp(support, centeringMeasure, precision, calculateMoments = FALSE)

Arguments

support

A numeric vector indicating the points at which the support for the BSP is defined

centeringMeasure

The mean or centering measure of the BSP at each point on the support or a function that can be evaluated at each point

precision

A constant indicating the precision of the BSP (Currently, the precision cannot vary over the support).

calculateMoments

This is used to calculate the second moment while creating the bsp. The moment is used when merging components with other components. If this function is only being used to create a prior, it can normally be set to false.

Details

The most common use case for this function will be defining BSPs to use as priors. The precision reflects the uncertainty in the prior. In general, a one unit increase in the precision is equivalent to one additional observation.

Value

An object representing a Beta-Stacy Process.

Examples

1
bsp(support=c(1,5), centeringMeasure=c(0.2,0.4), precision=2)

jntrcs/BnpSysRel documentation built on May 16, 2019, 9:09 p.m.