hesim-dev / hesim

Health economic simulation modeling and decision analysis
https://hesim-dev.github.io/hesim/
62 stars 17 forks source link

psm$new output ! #6

Closed MattheneusHTA closed 5 years ago

MattheneusHTA commented 5 years ago

In my survival models I include several variables: flexsurvreg(Surv(endpoint3_time, endpoint3_status) ~ ostprof + PSADT + patient_id + factor(strategy_id), data = surv_est_data, dist = "weibull")

However in the psm$new output only the patient_id variable is included. How do I get the psm$new to correspond the to my survival models ?

Clarification: In the psm$survival_ only strategy_id and patient_id are included. but I have more variables in my model than that?

dincerti commented 5 years ago

This is the expected behavior. The model simulates outcomes for each patient_id and strategy_id combination as a function of the covariates in your model.