Description Usage Arguments Value References Examples
Compute randomized quantile residuals for the Mixture Link Binomial and Mixture Link Poisson distributions.
1 2 3 | rqres.mixlink.binom(y, m, mean, Pi, kappa)
rqres.mixlink.pois(y, mean, Pi, kappa)
|
y |
The observations |
m |
Number of success/failure trials |
mean |
Estimate for parameter \vartheta of distribution |
Pi |
Estimate for parameter \bm{π} of distribution |
kappa |
Estimate for parameter κ of distribution |
Vector of residuals
Peter K. Dunn and Gordon K. Smyth. Randomized quantile residuals. Journal of Computational and Graphical Statistics, 5(3):236-244, 1996.
1 2 3 4 5 6 7 | n <- 400
mean.true <- rep(20, n)
Pi.true <- c(1/4, 3/4)
kappa.true <- 1.5
y <- r.mixlink.pois(n, mean.true, Pi.true, kappa.true)
r <- rqres.mixlink.pois(y, mean.true, Pi.true, kappa.true)
qqnorm(r); qqline(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.