merlin_util_ev_deriv: merlin_util_ev_deriv - returns the first derivative with...

Description Usage Arguments Author(s) References Examples

View source: R/merlin_utils.R

Description

Utility function to extract d/dt of the expected value of the outcome at the current parameter estimates for a particular model.

Usage

1

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

1
2
3
4
5
6
7
library(merlin)
data(pbc.merlin, package = "merlin")

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

merlin documentation built on Aug. 16, 2018, 5:04 p.m.