| estimate-methods | R Documentation |
These methods provide the standard print(), summary(), and plot()
interfaces for funcml_estimand objects.
## S3 method for class 'funcml_estimand'
print(x, ...)
## S3 method for class 'funcml_estimand'
summary(object, ...)
## S3 method for class 'funcml_estimand'
plot(x, style = c("outcomes", "effects"), bins = 24, alpha = 0.45, ...)
x |
A |
... |
Additional arguments passed to the underlying method. |
object |
A |
style |
Plot style. |
bins |
Number of bins used when |
alpha |
Fill opacity used when |
print() and summary() return the input object or summary table
invisibly. plot() returns a ggplot2 object.
causal_data <- mtcars
causal_data$am <- factor(causal_data$am, labels = c("auto", "manual"))
ate <- estimate(
data = causal_data,
formula = mpg ~ am + wt + hp,
model = "glm",
treatment = "am",
estimand = "ATE"
)
print(ate)
summary(ate)
plot(ate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.