Creates model selection tables, calculates and plots relative variable importance based on the scale level of a given model.
rvi.plot(
formula,
family,
data,
coord,
maxlevel,
detail = TRUE,
wavelet = "haar",
wtrafo = "dwt",
n.eff = NULL,
trace = FALSE,
customize_plot = NULL
)
A model formula
gaussian
, binomial
, and poisson
are supported.
A data frame or set of vectors of equal length.
X,Y coordinates for each observation. Coordinates should be consecutive integers.
An integer for maximum scale level
Remove smooth wavelets? If TRUE
, only detail components are analyzed.
If set to FALSE
, smooth and detail components are analyzed. Default is TRUE
.
Type of wavelet: haar
, d4
, or la8
Type of wavelet transform: dwt
or modwt
A numeric value of effective sample size
Should R print progress updates to the console? Default is FALSE
Additional plotting parameters passed to ggplot
.
NOW DEPRECATED.
A list containing
1. A matrix containing the relative importance of each variable in the regression at each value of the scale level.
2. A ggplot
object containing a plot of the relative
variable importance
Calculates the relative importance of each variable
using multi-model inference methods in a wavelet multi-resolution regression
framework implemented in mmiWMRR
. The scale level dependent
results are then graphically displayed.
# NOT RUN {
data(carlinadata)
coords<- carlinadata[,4:5]
# }
# NOT RUN {
wrm <- WRM(carlina.horrida ~ aridity + land.use,
family = "poisson",
data = carlinadata,
coord = coords,
level = 1,
wavelet = "d4")
mmi <- mmiWMRR(wrm, data = carlinadata, scale = 3, detail = TRUE)
# Plot scale-dependent relative variable importance
rvi <- rvi.plot(carlina.horrida ~ aridity + land.use,
family = "poisson",
data = carlinadata,
coord = coords,
maxlevel = 4,
detail = TRUE,
wavelet = "d4")
rvi$plot
rvi$rvi
# }
Run the code above in your browser using DataLab