has_tdc {pammtools}R Documentation

Checks if data contains timd-dependent covariates

Description

Checks if data contains timd-dependent covariates

Usage

has_tdc(data, id_var)

Arguments

data

A data frame (potentially) containing time-dependent covariates.

id_var

A character indicating the grouping variable. For each covariate it will be checked if their values change within a group specified by id_var.

Value

Logical. TRUE if data contains time-dependent covariates, else FALSE.


[Package pammtools version 0.5.91 Index]