Skip to contents

Extracts and scales influence function (IC) components from a fitted binomial regression ATE object or raw IC matrix. Depending on the object class and requested `type`, returns one or more components combined by column-binding.

Usage

# S3 method for class 'binreg'
IC(x, type = c("coef", "DR", "G"), ...)

Arguments

x

An object of class ATE, or an object containing an iid component.

type

Character vector specifying which influence curve components to return. Possible values are:

coef

Influence curve for regression coefficients

DR

Doubly robust ATE influence curve

G

G-computation ATE influence curve

If x inherits from ATE and type is missing, the default is c("DR", "G").

...

Currently unused.

Value

A numeric matrix obtained by column-binding the selected influence curve components. Each column corresponds to one element of type, with column names preserved.

Details

For objects of class ATE, the function extracts and rescales the stored influence curve components:

  • x$iid for coefficient ICs

  • x$riskDR.iid for doubly robust ATE ICs

  • x$riskG.iid for G-computation ICs

Each component is multiplied by its sample size (NROW(.)).

For non-ATE objects, the function returns NROW(x$iid) * x$iid.

Examples

if (FALSE) { # \dontrun{
data(bmt)
dfactor(bmt)  <-  ~.

fit  <- binregATE(Event(time,cause)~tcell.f+platelet+age,bmt,time=50,cause=1,
  treat.model=tcell.f~platelet+age)
# default ATE behavior (DR + G)
head(IC(fit))

# only DR component
head(IC(fit, "DR"))

# multiple components
head(IC(fit, c("coef", "DR")))
} # }