tlmec: Linear Student-t Mixed-Effects Models with Censored Data

Description Usage Arguments Value Author(s) See Also

View source: R/tlmec.R

Description

Fit a linear mixed effects model for censored data with Student-t or normal distributions. The errors are assumed independent and identically distributed.

Usage

1
2
3
tlmec(cens = NULL, y = NULL, x = NULL, z = NULL, nj = NULL, 
      nu = 4, family = "t", criteria = TRUE, diagnostic = FALSE,
      initial, iter.max = 200, error = 0.001)

Arguments

cens

Vector of censures.

y

Vector or matrix of response. If y is a matrix the number of columns must be max(nj) with the missing values set as NA for non balanced design.

x

Design matrix of the fixed effects.

z

Design matrix of the random effects.

nj

A vector with the number of observations for each subject.

nu

Degree of freedom for Student-t distribution.

family

Distribution family to be used in fitting ("t" and "Normal")

criteria

If TRUE AIC, corrected AIC(AICcorr) and BIC are computed.

diagnostic

If TRUE all EM output are returned.

initial

Initial values

iter.max

The maximum number of iteration of the EM algorithm.

error

The convergence maximum error.

Value

Estimated values of beta, sigma2, the covariance matrix of the random effects and the random effects.

Author(s)

Larissa Matos larissa.amatos@gmail.com, Marcos Prates <marcosop@ime.unicamp.br> and Victor Lachos <hlachos@ime.unicamp.br>

See Also

UTIdata


tlmec documentation built on May 2, 2019, 6:44 a.m.

Related to tlmec in tlmec...