qi: Generic Method for Computing Quantities of Interest

Description Usage Arguments Value Note Author(s) Examples

Description

The qi function is used by developers to simulated quantities of interest. This method, as a result, is the most significant method of any Zelig statistical model.

Usage

1
  qi(obj, x = NULL, x1 = NULL, y = NULL, num, param = NULL)

Arguments

obj

a zelig object

x

a setx object or NULL

x1

an optional setx object

y

this parameter is reserved for simulating average treatment effects, though this feature is currentlysupported by only a handful of models

num

an integer specifying the number of simulations to compute

param

a parameters object

Value

a list of key-value pairs specifying pairing titles of quantities of interest with their simulations

Note

Run example(qi) to see a trivial version of

Author(s)

Matt Owen mowen@iq.harvard.edu

Examples

1
2
3
4
5
6
qi.some.model <- function(obj, x=NULL, x1=NULL, y=NULL, param=NULL) {
  list(
       "Expected Values: E(Y|X)" = NA,
       "Predicted Values: Y|X"   = NA
       )
}

IQSS/Zelig4 documentation built on May 9, 2019, 9:13 a.m.