check_data {oncomsm}R Documentation

Check a visits data set for correct format

Description

Raises specific errors when encountering issues in the data.

Usage

check_data(data, model)

Arguments

data

data.frame to check

model

srpmodel object used to fit data

Value

data.frame, same as input but all censoring events after terminal states are removed.

Examples

tbl <- data.frame(group_id = "A", subject_id = "A1", t = 0, state = "stable")
mdl <- create_srpmodel(A = define_srp_prior())
check_data(tbl, mdl)

[Package oncomsm version 0.1.4 Index]