Description Usage Arguments Value Author(s) References See Also Examples
Plotting the dbkGrad
object produces a few different plots that are of interest. The different plots, created from various plottype
options, are described below:
1 2 3 4 5 6 | ## S3 method for class 'dbkGrad'
plot(x, plottype = c("obsfit", "fitted", "observed", "exposure",
"residuals", "checksd"), plotstyle = c("mat", "level", "persp"),
restype = c("working", "proportional", "response", "deviance", "pearson"),
byage = TRUE, columns, rows, CI = TRUE, CBBonf = FALSE, CBSidak = FALSE,
logscale = TRUE, alphares = 0.05, col, ...)
|
x |
a |
plottype |
an optional character string. It specifies the type of plot to display and must be one of:
|
plotstyle |
an optional character string. It specifies the style of plot; it has no effect when
|
restype |
an optional character string.When
where |
rows, columns |
an optional numeric vector. It specifies the rows (columns) to plot. |
byage |
an optional logical. It selects the discrete variable of interest: |
logscale |
an optional logical;when TRUE (default), rates are plotted on log scale. |
CI |
an optional logical; if |
CBBonf |
an optional logical; does the same as |
CBSidak |
an optional logical; does the same as |
alphares |
an optional scalar.
When |
col |
a scalar or a vector with plotting colors. |
... |
additional arguments to be passed to or from methods. |
No values are returned from the plot function.
Angelo Mazza and Antonio Punzo
Bagnato L, Punzo A, Nicolis O (2012). The autodependogram: a graphical device to investigate serial dependences. Journal of Time Series Analysis, 33(2), 233-254.
Bagnato L, De Capitani L, Punzo A (2013a). Detecting Serial Dependencies with the Reproducibility Probability Autodependogram. Advances in Statistical Analysis. doi:10.1007/s10182-013-0208-y.
Bagnato L, De Capitani L, Punzo A (2013b). Testing Serial Independence via Density-Based Measures of Divergence. Methodology and Computing in Applied Probability. doi:10.1007/s11009-013-9320-4.
Mazza A, Punzo A (2014) DBKGrad: An R Package for Mortality Rates Graduation by Discrete Beta Kernel Techniques. Journal of Statistical Software, Code Snippets, 572, 1-18.
DBKGrad-package
, dbkGrad
, ItalyM
, TSA:acf
, SDD:ADF
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data("ItalyM")
# unidimensional analysis
res1 <- dbkGrad(obsq=obsq, limx=c(6,71), limy=104, exposure=population, bwtypex="EX", adaptx="ab")
plot(res1, plottype="obsfit", CI=FALSE, CBBonf=TRUE)
plot(res1, plottype="residuals", restype="pearson")
plot(res1, plottype="checksd", restype="pearson")
residuals(res1, type="pearson")
# bidimensional analysis
res2 <- dbkGrad(obsq=obsq, limx=c(6,46), limy=c(60,80), exposure=population,
transformation="logit", bwtypex="VC", bwtypey="EX", hx=0.01, hy=0.008, adaptx="ab", adapty="b")
plot(res2, plottype="obsfit")
plot(res2, plottype="obsfit", plotstyle="persp", col="black")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.