Learn R Programming

hesim (version 0.2.0)

check.input_mats: Input validation for class objects

Description

check is a generic function for validating the inputs of class objects.

Usage

# S3 method for input_mats
check(object)

# S3 method for params_mean check(object)

# S3 method for params_lm check(object)

# S3 method for params_lm_list check(object)

# S3 method for params_surv check(object)

# S3 method for params_joined_surv check(object, inner_class)

# S3 method for params_surv_list check(object)

# S3 method for params_joined_surv_list check(object, inner_class)

check(object, ...)

Arguments

object

object to check.

inner_class

When checking a list of objects, the class of elements within the inner most list.

...

Further arguments passed to or from other methods. Currently unused.

Value

If validation is successful, returns the object in question; otherwise, informs the user that an error has occurred.