Learn R Programming

Zelig (version 5.1.7)

reduce: Calculate the reduced dataset to be used in setx

Description

#' This method is used internally

Usage

reduce(dataset, s, formula, data, avg = avg)

Arguments

dataset

Zelig object data, possibly split to deal with by argument

s

list of variables and their tentative setx values

formula

a simplified version of the Zelig object formula (typically with 1 on the lhs)

data

Zelig object data

avg

function of data transformations

Value

a list of all the model variables either at their central tendancy or their setx value