P_exp: Title

View source: R/example_exp.R

P_expR Documentation

Title

Description

Title

Usage

P_exp(l_breaks, r_breaks, rate, n_quad = 1)

Arguments

l_breaks

a (m+1) vector defining a partition of the interval L into m sets

r_breaks

a (n+1) vector defining a partition of the interval R into n sets

rate

the rate of the exponential distribution

Value

the n x m matrix P of transition probabilities

Examples

# Compute P for exponential measurement error with rate = 1
# The latent interval L = [0,10] is divided into 20 intervals of length 0.5
# The observed interval R = [0,15] is divided into 15 intervals of length 1.
l_breaks <- seq(0,10, length.out = 21)
r_breaks <- seq(0,15, length.out = 16)
P <- P_exp(l_breaks, r_breaks, rate = 1)

PeteyCoco/ppdeconv documentation built on March 21, 2022, 5:35 a.m.