Learn R Programming

geocausal (version 0.3.2)

plot.cate: Plot estimated CATE

Description

Plot estimated CATE

Usage

# S3 method for cate
plot(
  x,
  ...,
  result = "cate",
  type = "l",
  scale = 1,
  xrange = NULL,
  main = "",
  xlab = "",
  ylim = NULL
)

Arguments

x

input

...

arguments passed on to the function

result

specify which values will be used for plot. Default is "cate" - If `result` is "cate", then estimated cate values will be used - If `result` is "beta", then the estimated regression coefficients will be used

type

The type of plot to draw. This argument will be ignored if `result` = "beta". Default is "l". - If `type` is "p", points with error bars will be drawn. - If `type` is "l", lines with shaded region will be drawn. - If `type` is a vector of strings, each element specifies the type for the corresponding `eval_values` value.

scale

a positive number specifying the scale by which the estimates will be scaled. If provided, the estimates will be scaled by this value. Default is NULL, which means no scaling is applied.

xrange

an optional vector of two values the range of x shown.

main

title

xlab

label of x-axis

ylim

an optional vector of two values specifying the limits of y