R/RcppExports.R
dmodifiedCount_bi.Rd
Compute count probabilities based on modified renewal process using
dePril algorithm.
dmodifiedCount_bi
does it for the builtin distributions.
dmodifiedCount_user
does the same for a user specified distribution.
dmodifiedCount_bi(
x,
distPars,
dist,
distPars0,
dist0,
nsteps = 100L,
time = 1,
extrap = TRUE,
cdfout = FALSE,
logFlag = FALSE
)
dmodifiedCount_user(
x,
distPars,
survR,
distPars0,
survR0,
extrapolPars,
nsteps = 100L,
time = 1,
extrap = TRUE,
cdfout = FALSE,
logFlag = FALSE
)
integer (vector), the desired count values.
Rcpp::List
with distribution specific slots
for the first arrival and the rest of the process respectively.
character, name of the first and following survival distributions.
unsiged integer number of steps used to compute the integral.
double time at wich to compute the probabilities. Set to 1 by default.
logical if TRUE
, Richardson extrapolation will be
applied to improve accuracy.
TODO
logical if TRUE
the log-probability will be returned.
user supplied survival function; should have
signature function(t, distPars)
, where t
is a positive real
number (the time at which the survival function is evaluated) and
distPars
is a list of distribution parameters. It should return a
double value (first arrival and following arrivals respectively).
list of same length as x
, where each slot is a
vector of length 2 (the extrapolation values to be used) corresponding to
x[i]
.
vector of probabilities P(x(i)) for i = 1, ..., n where n is
the length of x
.
For the modified renewal process the first arrival is allowed to have a different distribution from the time between subsequent arrivals. The renewal assumption is kept.