Learn R Programming

tramME (version 1.0.4)

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

Value

Numeric vector of parameter values.

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

Examples

Run this code
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