Learn R Programming

hesim (version 0.2.3)

formula_list: List of formula objects

Description

Create an object of class "formula_list". The object can be created from either multiple objects of class formula or from another "formula_list" object.

Usage

formula_list(...)

Arguments

...

Objects of class formula, which can be named.

Value

Returns an object of class "formula_list".

Examples

Run this code
# NOT RUN {
# Create from "formula" objects
flist_wei <- formula_list(shape = formula(~ 1), scale = formula(~ x))
class(flist_wei)

# Create from "formula_list" objects
flist <- formula_list(exponential = formula_list(rate = formula(~1)),
                              weibull = flist_wei)

# }

Run the code above in your browser using DataLab