create_StateVals: Create a 'StateVals' object
create_StateVals() is a generic function for creating an object of class
StateVals from a fitted statistical model
create_StateVals() is a generic function for creating an object of class
StateVals from a fitted statistical model
create_StateVals() is a generic function for creating an object of class
StateVals from a fitted statistical model
create_StateVals() is a generic function for creating an object of class
StateVals from a fitted statistical model
create_StateVals() is a generic function for creating an object of class
StateVals from a fitted statistical model
= "beta"
mod <- create_StateVals(sv, n = 2, hesim_data = hesim_dat)
expect_equal(nrow(mod$params$value), nrow(sv
= "beta"
mod <- create_StateVals(sv, n = 2, hesim_data = hesim_dat)
expect_equal(nrow(mod$params$value), nrow(sv
= "beta"
mod <- create_StateVals(sv, n = 2, hesim_data = hesim_dat)
expect_equal(nrow(mod$params$value), nrow(sv
= "beta"
mod <- create_StateVals(sv, n = 2, hesim_data = hesim_dat)
expect_equal(nrow(mod$params$value), nrow(sv
trans_mat = tmat,
n = n_samples)
### Utility
a tparams_mean object is typically created automatically as part of the
StateVals class with create_StateVals().
See Also
a tparams_mean object is typically created automatically as part of the
StateVals class with create_StateVals().
See Also
trans_mat = tmat,
n = n_samples)
### Utility
a tparams_mean object is typically created automatically as part of the
StateVals class with create_StateVals().
See Also
trans_mat = tmat,
n = n_samples)
### Utility
a tparams_mean object is typically created automatically as part of the
StateVals class with create_StateVals().
See Also
probabilities
transmod <- CohortDtstmTrans$new(params = tp)
### Utility
probabilities
transmod <- CohortDtstmTrans$new(params = tp)
### Utility
probabilities
transmod <- CohortDtstmTrans$new(params = tp)
### Utility
create_StateVals(), StateVals
Examples
strategies <- data.frame(strategy_id = c(1, 2))
## @knitr utility-cost-models
# Utility
utilitymod <- create_StateVals(utility_tbl, n = n_samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.