Learn R Programming

tramME (version 0.1.3)

coef.tramME: Extract the coefficients of the fixed effects terms.

Description

Extract the coefficients of the fixed effects terms.

Usage

# S3 method for tramME
coef(object, with_baseline = FALSE, fixed = TRUE, ...)

Arguments

object

A tramME object.

with_baseline

If TRUE, also include the baseline parameters.

fixed

If TRUE, also include the fixed parameters.

...

Optional parameters (ignored).

Value

Numeric vector of parameter values.

Examples

Run this code
# NOT RUN {
library("survival")
mod <- SurvregME(Surv(time, status) ~ rx + (1 | litter/rx), data = rats,
                 dist = "exponential", nofit = TRUE)
coef(mod, with_baseline = TRUE)
coef(mod, with_baseline = TRUE, fixed = FALSE)
# }

Run the code above in your browser using DataLab