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.
Arguments
- x
An object of class
ATE, or an object containing aniidcomponent.- 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
xinherits fromATEandtypeis missing, the default isc("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$iidfor coefficient ICsx$riskDR.iidfor doubly robust ATE ICsx$riskG.iidfor 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")))
} # }
