data.table
Turn ate object into a data.table
.
# S3 method for ate
as.data.table(
x,
keep.rownames = FALSE,
estimator = x$estimator,
type = c("meanRisk", "diffRisk", "ratioRisk"),
...
)
object obtained with function ate
Not used.
[character] The type of estimator relative to which the estimates should be output.
[character vector] The type of risk to export.
Can be "meanRisk"
to export the risks specific to each treatment group,
"diffRisk"
to export the difference in risks between treatment groups,
or "ratioRisk"
to export the ratio of risks between treatment groups.
Not used.