Learn R Programming

Zelig (version 4.2-1)

qi: Generic Method for Computing Quantities of Interest

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

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

Examples

Run this code
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
       )
}

Run the code above in your browser using DataLab