Learn R Programming

pcatsAPIclientR (version 1.3.0)

staticGP.cate: Get conditional average treatment effect

Description

Estimate the conditional average treatment effect of user-specified treatment groups.

Usage

staticGP.cate(
  jobid,
  x,
  control.tr,
  treat.tr,
  c.margin = NULL,
  token = NULL,
  use.cache = NULL
)

Value

Return jobid

Arguments

jobid

job id of the "staticGP".

x

The name of a categorical variable which may have the heterogeneous treatment effect.

control.tr

The value of the treatment variable as the reference group.

treat.tr

The value of the treatment variable compared to the reference group.

c.margin

An optional vector of user-defined values of c for PrCTE.

token

Authentication token.

use.cache

Use cached results (default True).

Details

The contrast of potential outcomes for the reference group and the treatment group is estimated at each value of x.