pseudor2: Pseudo R2 for Binomial Logistic Mixed-Effects Models

Description Usage Arguments Examples

View source: R/pseudor2.R

Description

This function pseudo R2 (Nagelkerke and Cox & Snell) for mixed-effects binomial logistic regression models.

Usage

1
pseudor2(f, d)

Arguments

f

A vector of two character strings (e.g. c("dv ~ a + b", "(1 + a | Subject)")). The first element is the fixed-effect part of the regression formula (e.g. "DP ~ Predictor1 + Predictor1") and the second part is the random effect structure (e.g. "(1 | Subject)").

d

The data set on which the model was fit

Examples

1
2
3
4
5
## Not run: 
#model.glmermodel = glmer(depvar ~ indepvar + (1|ranvar), data = data, family = "binomial")
#pseudor2(c("depvar ~ indepvar", "(1|ranvar)"), data)

## End(Not run)

MartinSchweinberger/coedlstatzr documentation built on Nov. 27, 2019, 6:16 a.m.