Learn R Programming

tramME (version 1.0.7)

coef.SurvregME: Extract the coefficients of the fixed effects terms of an SurvregME model.

Description

Extract the coefficients of the fixed effects terms of an SurvregME model.

Usage

# S3 method for SurvregME
coef(object, as.survreg = FALSE, ...)

Value

A numeric vector of the transformed coefficients.

Arguments

object

An SurvregME object.

as.survreg

If TRUE, return the transformed coefficients as in a survival::survreg object.

...

Optional arguments passed to coef.tramME.

Examples

Run this code
library("survival")
fit <- SurvregME(Surv(time, status) ~ rx + (1 | litter), data = rats)
coef(fit, as.survreg = TRUE)

Run the code above in your browser using DataLab