Extract i.i.d. decomposition (influence function) from model object

iid(x,...)

# S3 method for default
iid(x,bread,id=NULL,folds=0,maxsize=(folds>0)*1e6,...)

Arguments

x

model object

...

additional arguments

id

(optional) id/cluster variable

bread

(optional) Inverse of derivative of mean score function

folds

(optional) Calculate aggregated iid decomposition (0:=disabled)

maxsize

(optional) Data is split in groups of size up to 'maxsize' (0:=disabled)

Examples

m <- lvm(y~x+z) distribution(m, ~y+z) <- binomial.lvm("logit") d <- sim(m,1e3) g <- glm(y~x+z,data=d,family=binomial) crossprod(iid(g))
#> (Intercept) x z #> (Intercept) 0.009260734 0.000527089 -0.009088157 #> x 0.000527089 0.007327729 0.001901999 #> z -0.009088157 0.001901999 0.021899377