View source: R/generate_aft_dgm_helpers_outcome.R
| plot_spline_treatment_effect | R Documentation |
Plot Spline Treatment Effect Function
plot_spline_treatment_effect(dgm_result, add_points = TRUE)
dgm_result |
Result object from generate_aft_dgm_flex with spline |
add_points |
Logical; add observed data points. Default TRUE |
Called for its side effect of producing a base-R plot. Returns
NULL invisibly.
## Not run:
library(survival)
df <- survival::gbsg
dgm <- generate_aft_dgm_flex(df, outcome.name = "rfstime",
event.name = "status", treat.name = "hormon",
confounders.name = c("age", "meno", "nodes"))
plot_spline_treatment_effect(dgm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.