plot.HK2_decomposition: 'plot' method for class 'HK2_decomposition'

View source: R/HK2_decomposition.R

plot.HK2_decompositionR Documentation

plot method for class HK2_decomposition

Description

plot method for class HK2_decomposition

Usage

## S3 method for class 'HK2_decomposition'
plot(
  HK2_decomposition,
  decomposition = "adim",
  t_aggregate = c(3, 2),
  x_aggregate = c(3, 2),
  levels = F,
  pe_digits = 3
)

Arguments

HK2_decomposition

Object of class HK2_decomposition.

decomposition

Either "adim" or "dim" for the respective decomposition. Default "adim".

t_aggregate

Integer scalar of vector of length two specifying treatment aggregate to be collected. 1 is reserved for collection of all treaments. If single integer, level is extracted. Vector of length two like c(3,2) provides aggregate 2 minus aggregate 1.

x_aggregate

Integer scalar of vector of length two specifying covariate aggregate to be collected. If single integer, level is extracted. 1 is reserved for the unconditional version. vector of length two like c(3,2) provides aggregate 2 minus aggregate 1.

levels

If TRUE, prints levels next to difference. Only applicable with length(x_aggregate) == 2.

pe_digits

Controls number of digits printed for point estimate.


MCKnaus/causalDML documentation built on June 11, 2025, 12:30 a.m.