6
indic <- ifelse(jinf+1 <= 1 & jsup >= 1,1,0)
7
E.cond <- ch*(-pbinom(jinf,ni,prb) + 1-pbinom(js.n,ni,prb)) +
8
ifelse(ni == 1, prb*indic,
9
mu*(pbinom(js.n-1,pmax(ni-1,1),prb)-
10
pbinom(jinf-1,pmax(ni-1,1),prb))) / sV -
11
## why is the following line wrongly indented by Emacs/ESS ?
12
mu/sV*(pbinom(js.n,ni,prb) - pbinom(jinf,ni,prb))
14
indic2 <- ifelse(jinf+1 <= 1 & jsup >= 1 & ni == 2,1,0)