coef.vcmm_fit: Fixed-effects coefficient vector from a vcmm fit

View source: R/methods.R

coef.vcmm_fitR Documentation

Fixed-effects coefficient vector from a vcmm fit

Description

Returns \hat\beta as a named numeric vector. Under the package's design (X_design = cbind(1, B*x_1, ..., B*x_K), see build_vcmm_design), entry 1 is the constant intercept and entries (1 + (k-1)*m + 1):(1 + k*m) are the spline basis coefficients for the k-th varying coefficient \beta_k(t).

Usage

## S3 method for class 'vcmm_fit'
coef(object, ...)

Arguments

object

A vcmm_fit object.

...

Unused.

Details

To evaluate \beta_k(t) at user-supplied t values, use varying_coef. To get the same vector reshaped into a (basis x covariate) matrix with the intercept split out, use fixef.vcmm_fit.

Value

Named numeric vector of length p = 1 + K \cdot m.


cevcmm documentation built on July 24, 2026, 5:07 p.m.