reduce: Calculate the reduced dataset to be used in 'setx'

View source: R/utils.R

reduceR Documentation

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

Author(s)

Christine Choirat and Christopher Gandrud


IQSS/Zelig documentation built on Dec. 11, 2023, 1:51 a.m.