check.dag: Internal check of whether the formulas passed to the function...

View source: R/internal.R

check.dagR Documentation

Internal check of whether the formulas passed to the function dpa follow a directed acyclic graph (DAG)

Description

Do not call this function on its own

Usage

check.dag(meta, data)

Arguments

meta

meta data obtained internally inside the dpasurv::dpa function

data

input data to the dpasurv::dpa function

Value

this function does not return anything, but throws an error with explanation if dag is not correctly specified

Examples

library(dpasurv)

data(simdata)

meta <- get.meta(Surv(start, stop, event) ~ x + M, list(M ~ x), simdata)
check.dag(meta, simdata)

dpasurv documentation built on Sept. 11, 2024, 9:36 p.m.