check.formula_terms {TimeDepFrail}R Documentation

Check Correctness of Formula Terms

Description

The function controls that the terms composing the formula object provided in input to the main model are correct. They must include:

Moreover, it controls that the covariates are contained in the dataset provided.

Usage

check.formula_terms(formula, data)

Arguments

formula

Formula object specifying the relationship between the time-to-event, the covariates and the cluster variables.

data

Dataset in which these variables can be found.

Value

An error if any condition is not satified.


[Package TimeDepFrail version 0.1.0 Index]