collin.fnc.mer: Calculate Condition Number (with Intercept) of merMod Object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/collin.fnc.mer.R

Description

Calculates the condition number (kappa) with the intercept included, following Belsley, Kuh and Welsch (1980).

Usage

1

Arguments

x

a object of class lmerMod or glmerMod.

Details

An adaptation of collin.fnc from languageR for use with mixed models from the lme4 package.

Value

A list of components

svd

Singular value decomposition

cindex

Condition indices

cnumber

Condition number

pi

The phi matrix

Author(s)

F. J. Tweedie, R. H. Baayen, J. Grafmiller

See Also

collin.fnc, kappa

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run:
data(brown_genitives)

require(lme4)
require(languageR)

genitive.glmm = glmer(Type ~ PossrAnimacyBin +
   PossrWordC + Genre + (1|Text), data = brown_genitives,
   family = binomial, control = glmerControl(optimizer = "bobyqa"))

collin.fnc.mer(genitive.glmm)$cnumber
## End(Not run)

jasongraf1/JGmermod documentation built on May 24, 2019, 9:54 p.m.