sim_markedpp: Simulate a pair of event time series.

Description Usage Arguments Value

View source: R/markedPP_funcs.R

Description

Simulate a pair of event time series.

Usage

1
2
sim_markedpp(lambda, W, nSamp, indep = FALSE, p, normal = TRUE, sigma,
  lambda2)

Arguments

lambda

Intensity of first process (i.e. of Mark 1/A).

W

Observation window c(low, high).

nSamp

Number of samples to draw, intentionally too large.

indep

Logical indicating if the second process should depend on the first; default == FALSE

  • TRUE: homogeneous Poisson process of rate lambda2

  • FALSE: draw Bern(p), if 1 draw point from N(t_1[i],sigma^2)

p

Bernoulli probability if indep == FALSE

normal

Logical indicating distribution used to simulate dependent events; default == TRUE

  • TRUE: Gaussian(t_1[i], sigma^2)

  • FALSE: Exponential(sigma)

sigma

Standard deviation of normal if indep == FALSE

lambda2

intensity of second process if indep == TRUE

Value

Data.frame of <t, m>


UCIDataLab/assocr documentation built on Oct. 15, 2021, 8:54 p.m.