PieceExpIntensity2: C++ Sampling Function for MCMC

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

C++ Sampling Function used in the PieceExpIntensity function.

Usage

1
PieceExpIntensity2(Y, Rates, B, Poi)

Arguments

Y

Vector containing observed event times.

Rates

Vector containing poisson count intensities.

B

Number of iterations to run the MCMC with half burned in.

Poi

Prior mean number of split points,

Value

A list of all posterior quantities.

Examples

1
2
3
4
5
6
7
8
B=1000
n=100
Y=rexp(n,1)
Rates=Y
Rates[Y<.5]=rpois(sum(Y<.5),20)
Rates[Y>.5]=rpois(sum(Y>.5),3)
Poi=10
PieceExpIntensity2(Y,Rates,B,Poi)

PieceExpIntensity documentation built on April 25, 2018, 1:03 a.m.