dp.ME.cook {influence.ME} | R Documentation |
This is a wrapper function to the dotplot() function in the lattice-package. It transforms the output from the ME.cook() function and calls dotplot() to provide the user with a visualization of the Cook's Distances.
dp.ME.cook(estex, parameters = 0, groups = 0, tol = 0, sort=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), Cook's Distance is calculated based on all parameters in the model. |
groups |
Used to define a selection of nesting groups that should be visualized. If groups = 0 (default), the values of Cook's Distance for all nesting groups are shown. |
tol |
Values of Cook's Distance exceeding the specified level of tolerance (tol ) are plotted visually different from values not exceeding tolerance. If tol=0 (default), no such differentiation is made in the way values are plotted. |
sort |
If sort=TRUE the values of Cook's Distance are ordered based on magnitude before visualization. If sort=FALSE (default) no sorting takes place. |
... |
Further arguments passed on to the dotplot() function. |
Rense Nieuwenhuis, Ben Pelzer, Manfred te Grotenhuis
estex
, ME.cook
, dp.ME.dfbetas
, dp.ME.pchange
data(school23) model <- lmer(math ~ structure + SES + (1 | school.ID), data=school23) alt.est <- estex(model, "school.ID") dp.ME.cook(alt.est) dp.ME.cook(alt.est, tol=.35)