Description Usage Arguments Author(s) Examples
It takes takes the response vector and produces a histogram and QQ-plot. For discrete responses normalized and randomized QQ-plots are produced.
1 | resp.check(y, margin = "N", bd = 1)
|
y |
reponse vector |
margin |
margin of interest. Is the response distributed according to the margin? The default is normal outcome. |
bd |
Binomial denominator - maximum value the response can take. This argument is only relevant in the case of BI, BB, ZIBI, ZABI, ZIBB and ZABB. |
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(SemiParSampleSel)
# Generating normal response with n = 2000
ys <- rnorm(2000, mean=3, sd=1)
resp.check(ys, margin = "N")
## Not run:
# Generating gamma response with n = 2000
ys <- rgamma(2000, shape=2, rate=3)
resp.check(ys, margin = "G")
# Generating Poisson response with n = 2000
ys <- rPO(2000, mu=3)
resp.check(ys, margin = "P")
# Generating negative binomial response with n = 2000
ys <- rNBI(2000, mu=3, sigma=1)
resp.check(ys, margin = "NB")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.