logLik1: Calculates contribution of one subject to the log-likelihood

Description Usage Arguments Value Author(s) References Examples

Description

This function is generic; method functions can be written to handle specific classes of objects.

Usage

1
  logLik1(modfit, dt1, dtInit)

Arguments

modfit

an object representing model fitted to data using ML estimation.

dt1

a data frame with data for one subject, for whom the log-likelihood function is to be evaluated

dtInit

an optional auxiliary data frame.

Value

numeric scalar value representing contribution of a given subject to the overall log-likelihood returned by logLik() function.

Author(s)

Andrzej Galecki and Tomasz Burzykowski

References

???

Examples

1
2
3
4
require(nlme)
  logLik(fm1 <- lme(distance ~ age, data = Orthodont)) # random is ~ age
  dt1 <- subset(Orthodont, Subject == "M01")
  logLik1(fm1, dt1)

nlmeU documentation built on May 2, 2019, 6:50 p.m.