computeAggregatedEffects {EffectLiteR}R Documentation

Compute Aggregated Effects

Description

Computes aggregates of conditional effects for a subset of the original dataset based on a fitted EffectLiteR model.

Usage

computeAggregatedEffects(obj, agg.subset)

Arguments

obj

Object of class effectlite.

agg.subset

Vector of integers indicating the row numbers of the original dataset for the subset used to compute the aggregated effect

Value

Object of class "data.frame".

Examples

m1 <- effectLite(y="dv", z=c("z1"), k=c("k1"), x="x", 
control="control", data=example01, fixed.cell=TRUE, fixed.z=TRUE)
newdata <- data.frame(k1=NA, z1=1)
agg.subset <- autoSelectSubset(m1, newdata)
computeAggregatedEffects(m1, agg.subset)

[Package EffectLiteR version 0.4-6 Index]