kappa.mer: Compute or Estimate the Condition Number of a MerMod Data...

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

Description

Calculates the condition number of the data matrix obtained from a MerMod object using the method in kappa.

Usage

1
kappa.mer(fit)

Arguments

fit

a object of class lmerMod or glmerMod.

scale

logical. Should columns be scaled?

center

logical. Should columns be centered around the mean?

add.intercept

logical. Should a column for the model intercept be added?

exact

logical. Should the result be exact?

Details

An adaptation of kappa from base R for use with mixed models from the lme4 package. See help(kappa) for details.

Value

The condition number, kappa, or an approximation if exact = FALSE.

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.