CookD_gls: Copy of predictmeans::CookD, but with ability to include the...

CookD_glsR Documentation

Copy of predictmeans::CookD, but with ability to include the used formula and correlation structure so that the update function works. The model needs to be fitted with ML.

Description

Copy of predictmeans::CookD, but with ability to include the used formula and correlation structure so that the update function works. The model needs to be fitted with ML.

Usage

CookD_gls(
  model,
  group = NULL,
  plot = TRUE,
  idn = 3,
  newwd = TRUE,
  used_formula,
  cor_structure,
  data
)

Arguments

model

Model object returned by aov, lm, glm, gls, lme, and lmer.

group

Name (in "quotes") for indicating how observations are deleted for Cook's distance calculation. If group!=NULL then deletions will be along levels of group variable, otherwise, will be along individual observations.

plot

A logical variable; if it is true, a plot of Cook's distance will be presented. The default is TRUE.

idn

An integer indicating the number of top Cook's distances to be labelled in the plot. The default value is 3.

newwd

A logical variable to indicate whether to print graph in a new window. The default value is TRUE.

used_formula

formula used when fitting the model

cor_structure

correlation structure used when fitting the

data

data used for the fit

Details

Rather quick and dirty method; not exported function from package predictmeans is used. Maybe better implementation if scoping is adapted.

Value

vector with Cook's distance


Banui/trenda documentation built on March 19, 2022, 2:22 a.m.