ExpandCovs: Expand covariates across a time grid

View source: R/ctmc_dive.R

ExpandCovsR Documentation

Expand covariates across a time grid

Description

Expand covariates across a time grid

Usage

ExpandCovs(dat, tgrid)

Arguments

dat

data frame with covariates in columns and time column

tgrid

a vector with new time grid

Value

a expanded data frame where covariates are copied from nearest time point to grid point


r-glennie/CTMCdive documentation built on July 3, 2023, 11:01 p.m.