merlin_util_xzb_deriv {merlin}R Documentation

merlin_util_xzb_deriv - returns the first derivative with respect to time of the observation-level complex predictor

Description

Utility function to extract d/dt of the complex predictor evaluated at the current parameter estimates for a particular model.

Usage

merlin_util_xzb_deriv(gml, t = NULL)

Arguments

gml

merlin object - should not be edited

t

specifies the variable which represents time

Author(s)

Michael J. Crowther

References

Crowther MJ. Extended multivariate generalised linear and non-linear mixed effects models. https://arxiv.org/abs/1710.02223

Crowther MJ. merlin - a unified framework for data analysis and methods development in Stata. https://arxiv.org/abs/1806.01615

Martin EC, Gasparini A, Crowther MJ. merlin - an R package for mixed effects regression of linear and non-linear models.

Examples

library(merlin)
data(pbc.merlin, package = "merlin")

# Linear fixed-effects model
merlin(model = list(logb ~ year),
       family = "gaussian",
       data = pbc.merlin)

[Package merlin version 0.1.0 Index]