fitted.jglmm: Extract model fitted values

View source: R/extract.R

fitted.jglmmR Documentation

Extract model fitted values

Description

Extract the fitted values from a 'jglmm' object.

Usage

## S3 method for class 'jglmm'
fitted(object, ...)

Arguments

object

An object of class 'jglmm', as returned by 'jglmm()'.

...

Optional additional arguments, currently none are used.

Value

Vector of fitted values extracted from the model.

Examples

## Not run: 
jglmm_setup()
cbpp <- dplyr::mutate(lme4::cbpp, prop = incidence / size)
gm <- jglmm(prop ~ period + (1 | herd), data = cbpp, family = "binomial",
            weights = cbpp$size)
fitted(gm)

## End(Not run)

mikabr/jglmm documentation built on Nov. 18, 2022, 1:32 a.m.