as.data.table.ate: Turn ate Object Into a 'data.table'

View source: R/as.data.table.ate.R

as.data.table.ateR Documentation

Turn ate Object Into a data.table

Description

Turn ate object into a data.table.

Usage

## S3 method for class 'ate'
as.data.table(
  x,
  keep.rownames = FALSE,
  estimator = x$estimator,
  type = c("meanRisk", "diffRisk", "ratioRisk"),
  ...
)

Arguments

x

object obtained with function ate

keep.rownames

Not used.

estimator

[character] The type of estimator relative to which the estimates should be output.

type

[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.


riskRegression documentation built on May 29, 2024, 10:59 a.m.