Package: merlin 0.1.0

Michael Crowther

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

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>.

Authors:Emma Martin [aut], Alessandro Gasparini [aut], Michael Crowther [aut, cre]

merlin_0.1.0.tar.gz
merlin_0.1.0.tar.gz(r-4.5-noble)merlin_0.1.0.tar.gz(r-4.4-noble)
merlin_0.1.0.tgz(r-4.4-emscripten)merlin_0.1.0.tgz(r-4.3-emscripten)
merlin.pdf |merlin.html
merlin/json (API)
NEWS

# Install 'merlin' in R:
install.packages('merlin', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • heart.valve - Aortic valve replacement surgery data
  • heart.valve.merlin - Aortic valve replacement surgery data
  • pbc - Mayo Clinic primary biliary cirrhosis data
  • pbc.merlin - Mayo Clinic primary biliary cirrhosis data
  • sim3 - Simulated 3-level survival data

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

21 exports 3.00 score 7 dependencies 18 mentions 19 scripts 183 downloads

Last updated 4 years agofrom:bf50847759. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-linuxOKAug 23 2024

Exports:merlinmerlin_util_apmerlin_util_ap_modmerlin_util_depvarmerlin_util_ev_derivmerlin_util_ev_deriv_modmerlin_util_ev_deriv2merlin_util_ev_deriv2_modmerlin_util_ev_integmerlin_util_ev_integ_modmerlin_util_timevarmerlin_util_xzbmerlin_util_xzb_derivmerlin_util_xzb_deriv_modmerlin_util_xzb_deriv2merlin_util_xzb_deriv2_modmerlin_util_xzb_integmerlin_util_xzb_integ_modmerlin_util_xzb_modmlrcsmlsurv

Dependencies:latticeMASSMatrixrandtoolboxrngWELLstatmodsurvival

merlin

Rendered frommerlin.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2020-06-29
Started: 2018-08-16

Readme and manuals

Help Manual

Help pageTopics
Extract Model Coefficientscoef.merlin coef.summary.merlin
Extract Model Coefficientscoef.mlrcs coef.summary.mlrcs
Extract Model Coefficientscoef.mlsurv coef.summary.mlsurv
Aortic valve replacement surgery dataheart.valve heart.valve.merlin
Extract Log-LikelihoodlogLik.merlin logLik.summary.merlin
Extract Log-LikelihoodlogLik.mlrcs logLik.summary.mlrcs
Extract Log-LikelihoodlogLik.mlsurv logLik.summary.mlsurv
merlin - Mixed Effects Regression for Linear, Nonlinear and User-defined modelsmerlin
merlin_util_ap - returns the current estimate of the ith ancillary parameter for the associated modelmerlin_util_ap
merlin_util_ap_mod - returns the current estimate of the ith ancillary parameter for the specified modelmerlin_util_ap_mod
merlin_util_depvar - returns the response variable(s)merlin_util_depvar
merlin_util_ev - returns the observation-level expected value of the outcomemerlin_util_ev
merlin_util_ev_deriv - returns the first derivative with respect to time of the observation-level expected value of the outcomemerlin_util_ev_deriv
merlin_util_ev_deriv - returns the first derivative with respect to time of the observation-level expected value of the specified outcomemerlin_util_ev_deriv_mod
merlin_util_ev_deriv2 - returns the second derivative with respect to time of the observation-level expected value of the outcomemerlin_util_ev_deriv2
merlin_util_ev_deriv2_mod - returns the second derivative with respect to time of the observation-level expected value of the specified outcomemerlin_util_ev_deriv2_mod
merlin_util_ev_integ - returns the integral with respect to time of the observation-level expected value of the outcomemerlin_util_ev_integ
merlin_util_ev_integ_mod - returns the integral with respect to time of the observation-level expected value of the specified outcomemerlin_util_ev_integ_mod
merlin_util_ev_mod - returns the observation-level expected value of the outcome for a specified modelmerlin_util_ev_mod
merlin_util_timevar - returns the time variablemerlin_util_timevar
merlin_util_xzb - returns the observation-level complex predictormerlin_util_xzb
merlin_util_xzb_deriv - returns the first derivative with respect to time of the observation-level complex predictormerlin_util_xzb_deriv
merlin_util_xzb_deriv_mod - returns the first derivative with respect to time of the observation-level complex predictor of a specified modelmerlin_util_xzb_deriv_mod
merlin_util_xzb_deriv2 - returns the second derivative with respect to time of the observation-level complex predictormerlin_util_xzb_deriv2
merlin_util_xzb_deriv2_mod - returns the second derivative with respect to time of the observation-level complex predictor of the specified modelmerlin_util_xzb_deriv2_mod
merlin_util_xzb_integ - returns the integral with respect to time of the observation-level complex predictormerlin_util_xzb_integ
merlin_util_xzb_integ_mod - returns the integral with respect to time of the observation-level complex predictor of the specified modelmerlin_util_xzb_integ_mod
merlin_util_xzb_mod - returns the observation-level complex predictor of the specified modelmerlin_util_xzb_mod
Fit multi-level restricted cubic spline modelmlrcs
Fit proportional hazards survival modelsmlsurv
Mayo Clinic primary biliary cirrhosis datapbc pbc.merlin
predict.merlin - post-estimation tools for merlinpredict.merlin
Print 'merlin' Fitsprint.merlin
Print 'mlrcs' Fitsprint.mlrcs
Print 'mlsurv' Fitsprint.mlsurv
Simulated 3-level survival datasim3
Summarizing 'merlin' Fitsprint.summary.merlin summary.merlin
Summarizing 'mlrcs' Fitsprint.summary.mlrcs summary.mlrcs
Summarizing 'mlsurv' Fitsprint.summary.mlsurv summary.mlsurv
Calculate Variance-Covariance Matrix for a 'merlin' Model Objectvcov.merlin vcov.summary.merlin
Calculate Variance-Covariance Matrix for a 'mlrcs' Model Objectvcov.mlrcs vcov.summary.mlrcs
Calculate Variance-Covariance Matrix for a 'mlsurv' Model Objectvcov.mlsurv vcov.summary.mlsurv