Closed kkondo1981 closed 4 years ago
todo
Fixed the last two issues in my comment before this.
Modify the last issue (partial residual plot for non-Gaussian models) as below.
plot.AccurateGLM(resid=TRUE)
uses working residuals for partial residuals as default like residuals.glm(type="partial")
smooth_resid=TRUE
, smooth_resid="both"
, or smooth_resid="smooth_only"
.
b. Adding options to use other kinds of residuals (Pearson residuals, deviance residuals) with resid="pearson"
or resid="deviance"
.
c. Adding an option to use user-calculated residuals with resid=r
(here, r
is asuumed as a numeric vector).Moreover, I added an example markdown file as below. https://github.com/kkondo1981/aglm/blob/fix/plot-smallfix-20190706/examples/freMTPL2freq.rmd
Further improvement to select smoother and to get clearer partial residual plots in the example.
Further improvement to add rug plots with add_rug=TRUE
in plot.AccurateGLM()
.
Finished tests and debugs.
Fixed to use plot.AccurateGLM() with non-Gaussian models.