xplode: Extract values from a fitted GLMM object

Description Usage Arguments Details Value See Also Examples

View source: R/xplode.R

Description

Extract values from an object of class "merMod" (more specifically, from an object of subclass glmerMod).

Usage

1
2
xplode(model, name.cont = NA, name.factor = NA, names.response = NA,
  define.pf = list(pf1 = list(intercept = 1, slope = 2)))

Arguments

model

The GLMM fitted with glmer. An object of class "merMod".

name.cont

A string providing the name of the continuous predictor, as in the formula object of the fitted model

name.factor

A string providing the name of name of the categorical predictor, as in the formula object of the fitted model

names.response

Optional. A string providing the name of name of the response variable, as in the formula object of the fitted model

define.pf

Optional. Specifies which parameter pertains to the intercept and which to the slope in the formula object.

Details

For simplicity, several MixedPsy functions take as input an object of class xplode instead of an object of class "merMod". Most of these functions assume by default that the continuous predictor is entered first in the formula object. It is possible to use a different order, this requires to specify which parameter pertains to the intercept and which to the slope, by changing define.pf.

Value

An object of class "merMod" to be used with other MixedPsy functions.

See Also

merMod-class and glmer from package lme4 for objects of class “merMod”. MixDelta, MixTreatment for use of objects of class xplode.obj.

Examples

1
2
3
4
5
6
library(lme4)
datafr = PsySimulate(nsubjects = 10)
mod1 = glmer(formula = cbind(Longer, Total - Longer) ~ X + (1 | Subject),
family = binomial(link = "probit"), data = datafr)
xplode.mod1 = xplode(model = mod1, name.cont = "X")
MixDelta(xplode.mod1)

MixedPsy documentation built on May 2, 2019, 3:40 p.m.