Learn R Programming

tramME (version 0.1.3)

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

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.

Value

A numeric vector of the transformed coefficients.

Examples

Run this code
# NOT RUN {
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