Skip to contents

stats::influence() returns the same per-subject influence-function matrix stored in fit$psi. Rows are subjects and columns are coefficients, with scaling $$\mathrm{vcov}(\hat\theta) = n^{-2} \Psi^\top \Psi.$$

This is the public S3 adapter for R's stats::influence() generic. The fit$psi component is what agreement_test() uses for paired tests.

Usage

# S3 method for class 'misskappa_estimate'
influence(model, ...)

Arguments

model

A misskappa_estimate object.

...

Unused. Present for S3 generic conformance.

Value

A numeric matrix of per-subject influence-function rows.

Examples

fit <- agreement(dat.gwet2014, estimator = "ipw")
#> Warning: rater pair(s) rater4-rater5 co-observed by only one subject; the corresponding pairwise covariance is degenerate and the standard error unreliable.
psi <- stats::influence(fit)
all.equal(vcov(fit), crossprod(psi) / nrow(psi)^2)
#> [1] TRUE