Skip to contents

Values are returned in the row order of the data supplied to panglm(), even though estimation internally sorts observations by panel index. Fixed-effects binomial values are conditional inclusion probabilities, conditional on each individual's observed number of successes.

Usage

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

Arguments

object

a fitted "panglm" object

...

unused

Value

a numeric vector of fitted values, one per row of the original data supplied to panglm() (in that row order), or NA at rows dropped for missingness, following the model's na.action.

Examples

data(copd)
fit <- panglm(exacerbations ~ crp + treatment, data = copd,
              index = c("id", "visit"), model = "random", family = "poisson")
head(fitted(fit))
#> [1] 1.832969 1.472463 1.712529 1.778428 1.661572 1.719008