get_policy_object {polle} | R Documentation |
Get Policy Object
Description
Extract the fitted policy object.
Usage
get_policy_object(object)
Arguments
object |
Object of class policy_eval. |
Value
Object of class policy_object.
Examples
library("polle")
### Single stage:
d1 <- sim_single_stage(5e2, seed=1)
pd1 <- policy_data(d1, action="A", covariates=list("Z", "B", "L"), utility="U")
pd1
# evaluating the policy:
pe1 <- policy_eval(policy_data = pd1,
policy_learn = policy_learn(type = "drql",
control = control_drql(qv_models = q_glm(~.))),
g_models = g_glm(),
q_models = q_glm())
# extracting the policy object:
get_policy_object(pe1)
[Package polle version 1.4 Index]