dmodifiedCount_bi {Countr}  R Documentation 
Compute count probabilities based on modified renewal process (bi)
Description
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.
Usage
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
)
Arguments
x 
integer (vector), the desired count values. 
distPars0 , distPars 

dist0 , dist 
character, name of the first and following survival distributions. 
nsteps 
unsiged integer number of steps used to compute the integral. 
time 
double time at wich to compute the probabilities. Set to 1 by default. 
extrap 
logical if 
cdfout 
TODO 
logFlag 
logical if 
survR0 , survR 
user supplied survival function; should have
signature 
extrapolPars 
list of same length as 
Details
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.
Value
vector of probabilities P(x(i)) for i = 1, ..., n where n is
the length of x
.