dp.ME.dfbetas {influence.ME} | R Documentation |
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.
dp.ME.dfbetas(estex, parameters = 0, groups = 0, sort=FALSE, to.sort=NA, abs=FALSE, ...)
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. |
Rense Nieuwenhuis, Ben Pelzer, Manfred te Grotenhuis
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))