tests/testthat/test-visualizations.R

set.seed(33333)

fit_ml1env <- suppressWarnings(mixpoissonregML(daysabs ~ prog + math, data = Attendance, envelope = 10,
                                             optim_controls = list(maxit=1)))

fit_ml1 <- mixpoissonregML(daysabs ~ math, data = Attendance,
                           optim_controls = list(maxit=1))

plot(fit_ml1, which = 1:6)

autoplot(fit_ml1, nrow = 2)


autoplot(fit_ml1, which = 1:6)

expect_warning(local_influence_plot(fit_ml1, which = 1:5))

expect_warning(local_influence_plot(fit_ml1, which = 1:5, direction = "max.eigen"))

local_influence_plot(fit_ml1, which = 2)

expect_warning(local_influence_autoplot(fit_ml1, which = 1:5))

expect_warning(local_influence_autoplot(fit_ml1, which = 1:5, direction = "max.eigen"))

expect_warning(local_influence_autoplot(fit_ml1, which = 2))

expect_warning(local_influence_autoplot(fit_ml1, nrow = 2))



plot(fit_ml1env)

plot(fit_ml1env, which = 2)

autoplot(fit_ml1env, which = 2)

Try the mixpoissonreg package in your browser

Any scripts or data that you put into this service are public.

mixpoissonreg documentation built on March 11, 2021, 1:07 a.m.