Description Usage Arguments Examples
Let X_1,X_2,… X_N be independent Bernouilli trials with X_i \sim p_i. We evaluate the probability
P(s_1X_1+s_2X_2… s_NX_N > t)
.
1 | saddlepoint(t, dat, lattice = 1L, log = T)
|
t |
Point where tail probability is evaluated (note this function is not vectorized over t) |
lattice |
Lattice size in minimal lattice |
log |
Return log probability |
p |
Probabilities of each Bernouilli trial |
s |
Score associated with each trial |
1 2 | saddlepoint(300, rep(0.01, 10000))
pbinom(299, 10000, 0.01, lower.tail = F, log.p = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.