bind_survmat: Row-bind survmat objects on a common time grid

View source: R/core-survmat.R

bind_survmatR Documentation

Row-bind survmat objects on a common time grid

Description

Row-bind survmat objects on a common time grid

Usage

bind_survmat(...)

Arguments

...

One or more survmat objects.

Value

A combined survmat.

Examples

time <- c(0, 1, 2)
xA <- as_survmat(matrix(c(1.0, 0.9, 0.7), nrow = 1), time, group = "A")
xB <- as_survmat(matrix(c(1.0, 0.8, 0.6), nrow = 1), time, group = "B")
x <- bind_survmat(xA, xB)
nobs_survmat(x)

tvrmst documentation built on March 17, 2026, 1:07 a.m.