Learn R Programming

⚠️There's a newer version (1.0.7) of this package.Take me there.

tramME (version 0.1.3)

Transformation Models with Mixed Effects

Description

Likelihood-based estimation of mixed-effects transformation models using the Template Model Builder (TMB, Kristensen et al., 2016, ). The technical details of transformation models are given in Hothorn et al. (2018, ). Likelihood contributions of exact, randomly censored (left, right, interval) and truncated observations are supported. The random effects are assumed to be normally distributed on the scale of the transformation function, the marginal likelihood is evaluated using the Laplace approximation, and the gradients are calculated with automatic differentiation (AD).

Copy Link

Version

Install

install.packages('tramME')

Monthly Downloads

684

Version

0.1.3

License

GPL-2

Maintainer

Balint Tamasi

Last Published

March 8th, 2022

Functions in tramME (0.1.3)

SurvregME

CoxphME

BoxCoxME

ColrME

VarCorr.tramME

Variances and correlation matrices of random effects
PolrME

AaregME

VarCorr.LmME

Variances and correlation matrices of random effects of an LmME object
LehmannME

.check_par

Helper function to check parameter constarints
anova.tramME

Comparison of nested tramME models.
.model_name

Generates proper model name for the tramME model
optim_control

Set up and control optimization parameters
logLik.tramME

Get the log-likelihood of the model
lpterms

Generic method for extracting terms of the linear predictor
coef<-.tramME

Set coefficients of a tramME model.
.nm2mat

Add names to the vc matrix
.gen_param

Generator for param closure
.combine_formulas

Combine a set of formulas into one (similar to nlme::asOneFormula)
.get_cf

Get the coefficient vector
optim_tramTMB

Optimize the tramTMB object
.th2vc

Convert from theta vector to vc matrix
confint.LmME

Confidence intervals for LmME model parameters
coef.tramME

Extract the coefficients of the fixed effects terms.
confint.tramME

Confidence intervals for tramME model parameters
duplicate.tramME

Duplicate a tramME object
offset<-

Generic method for "offset<-"
.tramME2ctm

Create a corresponding ctm model for a tramME model
LmME

ME version of tram::Lm
duplicate.tramTMB

Create a duplicate of the tramTMB object
.isbars

Check whether formula contains bars (RE parts)
coef.LmME

Extract the coefficients of the fixed effects terms of an LmME model.
.mod_negative

Helper function to figure out if negative = TRUE in a given model
.set_vc

Set the parameters of the random effect covariance matrix
coef.SurvregME

Extract the coefficients of the fixed effects terms of an SurvregME model.
print.VarCorr.tramME

Print method for the variance-correlation parameters of a tramME object
print.anova.tramME

Printing anova.tramME table
sigma.LmME

Extract the SD of the error term of an LmME model.
offset

Generic method for "offset"
weights<-

Generic method for "weights<-"
residuals.LmME

Residuals of a LmME model
residuals.tramME

Residuals of a tramME model
.nm2vec

Add names to the vector of theta parameters
.idx

Get parameter indices of various structures
.get_par

Helper function to extract formatted parameters
varcov.tramME

Extract the variance-covariance matrix of the random effects
simulate.tramME

Simulate from a tramME model
.cctm

Create a 'conditional' ctm model with random effects as offsets
.constr_adj

Helper function to adjust the constraints consistently with the parameter restrictions
.ctm2formula

Create a dummy fromula from a ctm object
.re_format

Format random effects
.parallel_default

Boilerplate parallel-handling function, modified from glmmTMB
variable.names.tramME

Return variable names.
weights.tramME

Get the observation weight vector of a tramME object.
.re_size

Calculates the size of the random effect vector implied by the model and the data
vcov.tramTMB

Variance-covariance matrix of the parameters
.set_cf

Set the coefficient vector
fe_terms

Create fixed effects data and initial parameters
fitmod

Fit the model.
lpterms.tramME

Get inidvidual terms of the linear predictor and their confidence intervals
model.frame.tramME

Extract model frame from a tramME model
model.matrix.tramME

Model matrix for tramME mdoels
.sim_re

Simulates random effects vector from a tramME object
re_terms

Create random effects data and initial paramaters
print.tramME

Print tramME model
ranef.tramME

Extract the conditional modes and conditional variances of random effects
ranef.LmME

Extract the conditional modes of random effects of an LmME model
.nobars

Remove random effects terms from full formulas or calls
fitmod.tramME

Call the optimizer on a tramME object
weights<-.tramME

Set the values of the observation weights of a tramME model.
is.pd

Check positive definiteness
offset<-.tramME

Set the values of the offsets of a tramME model.
trafo.tramME

Get the baseline transformation function and its confidence interval
plot.trafo.tramME

Plotting method for trafo.tramME objects
tramME_model

Create an object that defines a tramME_model
parboot.tramME

Do parametric bootsrap using a tarmME model
.vc2th

Convert from vc matrix to theta vector
tramTMB

Create a tramTMB object
varcov<-.tramME

Set the values of the random effects covariance matrices of a tramME model.
offset.default

Default method for "offset"
duplicate

Generic for copying objects that are (partly) modified in place
varcov<-

Generic method for "varcov<-"
tramTMB_inputs

Create inputs of the tramTMB model
print.simulate.tramME

Print method for simulate.tramME objects
print.summary.tramME

Print method for tramME model summary
vcov.LmME

Get the variance-covariance matrix of the parameters of an LmME model
offset.tramME

Get the offset vector of a tramME object.
predict.tramME

Predict method for tramME objects
plot.tramME

Plotting method for tramME objects
summary.tramME

Summary method for tramME model
varcov

Generic method for varcov
trafo

Generic method for extracting baseline transformations
varcov.LmME

Extract the variance-covariance matrix of the random effects of an LmME model
vcov.tramME

Calculate the variance-covariance matrix of the parameters