merlin0.1.0 package

Mixed Effects Regression for Linear, Non-Linear and User-Defined Models

coef.merlin

Extract Model Coefficients

coef.mlrcs

Extract Model Coefficients

coef.mlsurv

Extract Model Coefficients

logLik.merlin

Extract Log-Likelihood

logLik.mlrcs

Extract Log-Likelihood

logLik.mlsurv

Extract Log-Likelihood

merlin

merlin - Mixed Effects Regression for Linear, Nonlinear and User-defin...

merlin_util_ap

merlin_util_ap - returns the current estimate of the ith ancillary par...

merlin_util_ap_mod

merlin_util_ap_mod - returns the current estimate of the ith ancillary...

merlin_util_depvar

merlin_util_depvar - returns the response variable(s)

merlin_util_ev

merlin_util_ev - returns the observation-level expected value of the o...

merlin_util_ev_deriv

merlin_util_ev_deriv - returns the first derivative with respect to ti...

merlin_util_ev_deriv_mod

merlin_util_ev_deriv - returns the first derivative with respect to ti...

merlin_util_ev_deriv2

merlin_util_ev_deriv2 - returns the second derivative with respect to ...

merlin_util_ev_deriv2_mod

merlin_util_ev_deriv2_mod - returns the second derivative with respect...

merlin_util_ev_integ

merlin_util_ev_integ - returns the integral with respect to time of th...

merlin_util_ev_integ_mod

merlin_util_ev_integ_mod - returns the integral with respect to time o...

merlin_util_ev_mod

merlin_util_ev_mod - returns the observation-level expected value of t...

merlin_util_timevar

merlin_util_timevar - returns the time variable

merlin_util_xzb

merlin_util_xzb - returns the observation-level complex predictor

merlin_util_xzb_deriv

merlin_util_xzb_deriv - returns the first derivative with respect to t...

merlin_util_xzb_deriv_mod

merlin_util_xzb_deriv_mod - returns the first derivative with respect ...

merlin_util_xzb_deriv2

merlin_util_xzb_deriv2 - returns the second derivative with respect to...

merlin_util_xzb_deriv2_mod

merlin_util_xzb_deriv2_mod - returns the second derivative with respec...

merlin_util_xzb_integ

merlin_util_xzb_integ - returns the integral with respect to time of t...

merlin_util_xzb_integ_mod

merlin_util_xzb_integ_mod - returns the integral with respect to time ...

merlin_util_xzb_mod

merlin_util_xzb_mod - returns the observation-level complex predictor ...

mlrcs

Fit multi-level restricted cubic spline model

mlsurv

Fit proportional hazards survival models

predict.merlin

predict.merlin - post-estimation tools for merlin

print.merlin

Print merlin Fits

print.mlrcs

Print mlrcs Fits

print.mlsurv

Print mlsurv Fits

summary.merlin

Summarizing merlin Fits

summary.mlrcs

Summarizing mlrcs Fits

summary.mlsurv

Summarizing mlsurv Fits

vcov.merlin

Calculate Variance-Covariance Matrix for a merlin Model Object

vcov.mlrcs

Calculate Variance-Covariance Matrix for a mlrcs Model Object

vcov.mlsurv

Calculate Variance-Covariance Matrix for a mlsurv Model Object

Fits linear, non-linear, and user-defined mixed effects regression models following the framework developed by Crowther (2017) <arXiv:1710.02223>. 'merlin' can fit multivariate outcome models of any type, each of which could be repeatedly measured (longitudinal), with any number of levels, and with any number of random effects at each level. Standard distributions/models available include the Bernoulli, Gaussian, Poisson, beta, negative-binomial, and time-to-event/survival models include the exponential, Gompertz, Royston-Parmar, Weibull and general hazard model. 'merlin' provides a flexible predictor syntax, allowing the user to define variables, random effects, spline and fractional polynomial functions, functions of other outcome models, and any interaction between each of them. Non-linear and time-dependent effects are seamlessly incorporated into the predictor. 'merlin' allows multivariate normal random effects, which are integrated out using Gaussian quadrature or Monte-Carlo integration. Note, 'merlin' is based on the 'Stata' package of the same name, described in Crowther (2018) <arXiv:1806.01615>.