iid: Extract i.i.d. decomposition (influence function) from model...

Description Usage Arguments Examples

View source: R/iid.R

Description

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

Usage

1
2
3
4
iid(x,...)

## Default S3 method:
iid(x,bread,id,...)

Arguments

x

model object

id

id/cluster variable (optional)

bread

(optional) Inverse of derivative of mean score function

...

additional arguments

Examples

1
2
3
4
5
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))

Example output

lava version 1.5
              (Intercept)            x            z
(Intercept)  0.0093982850 0.0006437384 -0.009206659
x            0.0006437384 0.0068696799  0.001401768
z           -0.0092066587 0.0014017678  0.020842188

lava documentation built on May 2, 2019, 4:49 p.m.