Learn R Programming

tramME (version 1.0.1)

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 and the fixed effects parameters from the smooth terms.

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