dp.ME.dfbetas {influence.ME}R Documentation

Dotplot visualization of DFBETAS

Description

This is a wrapper function to the dotplot() function in the lattice-package. It transforms the output from the ME.dfbetas() function and calls dotplot() to provide the user with a visualization of the DFBETAS.

Usage

dp.ME.dfbetas(estex, parameters = 0, groups = 0, sort=FALSE, to.sort=NA, abs=FALSE, ...)

Arguments

estex An object as returned by the estex() function, containing the altered estimates of a mixed effects regression model.
parameters Used to define a selection of parameters. If parameters = 0 (default), values for DFBETAS are visualized for parameters in the model.
groups Used to define a selection of nesting groups that should be visualized. If groups = 0 (default), the values of DFBETAS for all nesting groups are shown.
sort If sort=TRUE the values of DFBETAS are ordered based on magnitude before visualization. If sort=FALSE (default) no sorting takes place.
to.sort Specify on which variable the DFBETAS must be sorted. If only one variable present (either in the model, or due to the selection specified in parameters), this parameter can be omitted. If multiple variables are visualized, and sort=TRUE, specification of to.sort is required, or an error is returned.
abs If abs=TRUE, the absolute values of DFBETAS are visualized, while if abs=FALSE (default), both positive and negative values are possible. If both abs=TRUE and sort=TRUE, the abs parameters precedes the sort parameter, and thus the absolute values of DFBETAS are sorted.
... Further arguments passed on to the dotplot() function.

Author(s)

Rense Nieuwenhuis, Ben Pelzer, Manfred te Grotenhuis

See Also

estex, ME.dfbetas, dp.ME.cook

Examples

data(school23)
model <- lmer(math ~ structure + SES  + (1 | school.ID), data=school23)

alt.est <- estex(model, "school.ID")
dp.ME.dfbetas(alt.est)
dp.ME.dfbetas(alt.est, layout=c(1,3))

[Package influence.ME version 0.6.1 Index]