Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

iid

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


Description

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

Usage

iid(x,...)

## Default S3 method:
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))

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.