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

View source: R/methods.R

coef.tramMER Documentation

Extract the coefficients of the fixed effects terms.

Description

Extract the coefficients of the fixed effects terms.

Usage

## S3 method for class '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

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)

tramME documentation built on July 9, 2023, 7:10 p.m.