View source: R/policy_data_functions.R
get_K | R Documentation |
get_K
returns the maximal number of stages for the observations in
the policy data object.
get_K(object)
object |
Object of class policy_data. |
Integer.
d <- sim_multi_stage(5e2, seed = 1)
pd <- policy_data(data = d$stage_data,
baseline_data = d$baseline_data,
type = "long",
id = "id",
stage = "stage",
event = "event",
action = "A",
utility = "U")
pd
# getting the maximal number of stages:
get_K(pd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.