influence.gower {goweragreement}R Documentation

Compute DFBETAs for units and/or coders.

Description

Compute DFBETAs for units and/or coders.

Usage

## S3 method for class 'gower'
influence(model, units, coders, ...)

Arguments

model

a fitted model object, the result of a call to gower.agree.

units

a vector of integers. A DFBETA will be computed for each of the corresponding units.

coders

a vector of integers. A DFBETA will be computed for each of the corresponding coders.

...

additional arguments. These are ignored.

Details

This function computes DFBETAs for one or more units and/or one or more coders.

Value

A list comprising at most four elements.

dfbeta.units

a vector containing DFBETAs for the units specified via argument units.

dfbeta.coders

a vector containing DFBETAs for the coders specified via argument coders.

fits.units

a list containing fit objects for the omitted units specified via argument units.

fits.coders

a list containing fit objects for the omitted coders specified via argument coders.

Examples


# Analyze nominal data previously considered by Krippendorff.
# Assume a one-way design. Compute a DFBETA for unit 6, which
# should be rather influential.

kripp = matrix(c(1,2,3,3,2,1,4,1,2,NA,NA,NA,
                 1,2,3,3,2,2,4,1,2,5,NA,3,
                 NA,3,3,3,2,3,4,2,2,5,1,NA,
                 1,2,3,3,2,4,4,1,2,5,1,NA), 12, 4)
kripp

set.seed(12)
fit = gower.agree(kripp)
summary(fit)
inf = influence(fit, units = 6)

# Report the DFBETA for unit 6 and the estimate of mu when unit 6
# is ommitted.

inf$dfbeta.units
fit$mu.hat - inf$dfbeta.units

[Package goweragreement version 1.0 Index]