Learn R Programming

pcatsAPIclientR (version 1.3.0)

dynamicGP.cate: Get conditional average treatment effect for data with two time points.

Description

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

Usage

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

Value

jobid

Arguments

jobid

job id of the "dynamicGP".

x

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

control.tr

A vector of the values of the treatment variables at all stages as the reference group.

treat.tr

A vector of the values of the treatment variables at all stages 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 a list of x values if x is not a factor. If x is a factor, the conditional average treatment effect is estimated at each value of levels of x.