Learn R Programming

BaPreStoPro (version 0.1)

NHPP-class: S4 class of model informations for non-homogeneous Poisson process

Description

Informations of NHPP with cumulative intensity function $\Lambda(t, \xi)$.

Arguments

Slots

xi
parameter $\xi$
Lambda
function $\Lambda(t,\xi)$
priorDensity
prior density function for $\xi$
start
list of starting values for the Metropolis within Gibbs sampler

Examples

Run this code
parameter <- list(xi = c(2, 0.2))
Lambda <- function(t, xi) (t / xi[2])^xi[1]
priorDensity <- function(xi) dgamma(xi, c(2, 0.2), 1)
start <- parameter
model <- set.to.class("NHPP", parameter, start = start, Lambda = Lambda,
   priorDensity = priorDensity)

Run the code above in your browser using DataLab