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

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Extract the coefficients of the fixed effects terms.

Usage

1
2
## 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.

fixed

If TRUE, also include the fixed parameters.

...

Optional parameters (ignored).

Value

Numeric vector of parameter values.

Examples

1
2
3
4
5
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 April 14, 2021, 1:06 a.m.