View source: R/tabular_input.R
create_states_from_tabular | R Documentation |
Transforms tabular input defining states into an
heRomod
object.
create_states_from_tabular(
state_info,
df_env = globalenv(),
state_trans_info = NULL
)
state_info |
Result for one model of
|
df_env |
An environment containing external data. |
state_trans_info |
Optional result for one model of
|
Columns of state_info besides .model and state include
costs and utilities we want to keep track of, with
appropriate values (these may include parameters). For
any cost or utility that should be discounted, an
additional column with the name ".discount.
A discount column can contain only a single value - a cost or benefit must be discounted by the same amount in each state. Discounts can be numbers or parameters (which will then need to be defined like any other).
The input data frame is expected to contain state
information for all the models you will use in an
analysis. For more information see the vignette:
vignette("file-input", package = "heRomod")
.
A state list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.