Learn R Programming

⚠️There's a newer version (5.1.7) of this package.Take me there.

Zelig (version 4.2-1)

Everyone's Statistical Software

Description

Zelig is an easy-to-use program that can estimate, and help interpret the results of, an enormous range of statistical models. It literally is ``everyone's statistical software'' because Zelig's simple unified framework incorporates everyone else's (R) code. We also hope it will become ``everyone's statistical software'' for applications and teaching, and so have designed Zelig so that anyone can easily use it or add their programs to it. Zelig also comes with infrastructure that facilitates the use of any existing method, such as by allowing multiply imputed data for any model, and mimicking the program Clarify (for Stata) that takes the raw output of existing statistical procedures and translates them into quantities of direct interest.

Copy Link

Version

Install

install.packages('Zelig')

Monthly Downloads

86

Version

4.2-1

License

GPL (>= 2)

Maintainer

James Honaker

Last Published

September 21st, 2013

Functions in Zelig (4.2-1)

mix

Produce All Combinations of a Set of Lists
constructDataFrame

Construct Data Frame Construct and return a tiny (single-row) data-frame from a larger data-frame, a list of specified values, and a formula
describe.gamma

Describe the gamma model to Zelig
as.parameters.default

??? -> parameters
describe.logit

Describe a `logit' model to Zelig
parse.formula

Parse Formulas for Zelig Models
print.setx

Print values of `setx' objects
describe.tobit

Describe a ``tobit'' model to Zelig
Weimar

1932 Weimar election data
constructDesignMatrix

Construct Design Matrix from Construct and return a design matrix based on a tiny data-frame (single-row).
Median

Compute the Statistical Median of a Vector
bootfn.default

Default Boot-strapping procedure
as.parameters.parameters

parameters -> parameters This is merely an identity function when casting 'parameters' objects into 'parameters'.
Mode

Compute the Statistical Mode of a Vector
getResponseTerms.formula

Get Response Terms from a Standard Formula
ZeligListModels

Get a Character-Vector of All Models with a 'zelig2' Function
is.formula

Whether an Object is a Formula
GetSlot

Generic method for extracting variables from both S3 and S4 fitted model object
as.data.frame.setx

Coerce a setx Object into a data.frame
ZeligListTitles

List the Titles of the Zelig Statistical Models
as.description.list

list -> description
bootstrap

Generic Method for ``bootstrap''
as.bootlist

Convert of Vector of Bootstrapped Parameters to a List-style Boot Object
bootstrap.gamma

Bootstrap Parameters for Zelig ``gamma'' GLM
ZeligDescribeModel

Produce a 'description' Object from the Name of a Model
Zelig-package

Zelig Everyone's Statistical Software
find.match

Find a Partial or Exact Match from a Vector of Strings Searches a vector of character-string, and returns the best match.
model.matrix.parseFormula

Construct Design Matrix from a Parsed, Zelig-style Formula
param.default

Default Method for ``param''
cmvglm

cmvglm
Zelig.url

Table of links for Zelig
as.qi.list

list -> qi This function has a lot of room to go wrong. It tries o detect whether the zelig model is old-style or new-style (as of 4/4/2011). Eventually this feature should be phased out.
GetSlot.zelig

Return a Value from a zelig Fitted Model
describe.poisson

Describe the `poisson' model to Zelig
as.parameters.list

list -> parameters
approval

U.S. Presidential Approval Data
has.zelig2

Whether an Arbitrary R-package has a Zelig2 Function within Its Namespace
is.valid.qi.list

Check If Object Is a List of Valid Quantities of Interest
as.matrix.setx

Convert a 'setx' Object to a Matrix
bivariate

Sample data for bivariate probit regression
describe.normal

Describe the normal model to Zelig
bootstrap.normal

Bootstrap Parameters for Zelig ``normal'' GLM
attach.env

Attach Variables to a Function
cluster.formula

Generate Formulae that Consider Clustering
depends.on.zelig

Whether a Statistical Package Depends on the Zelig Software Suite
GetObject

Extract the fitted model object from the Zelig object
loadDependencies

Load External Dependencies Safely and Dynamically
is.qi

Test If Value is Interpretable as a QI
print.zelig

Print values of ``zelig'' objects
MatchIt.url

Table of links for Zelig
as.parameters

Generic Method for Converting Objects into 'parameters'
MCMChook

Hook to Clean-up MCMC Objects
as.summarized.summarized.qi

summarized.qi -> summarized.qi
summary.zelig

Zelig Object Summaries
qi

Generic Method for Computing Quantities of Interest
klein

Simulation Data for model Two-Stage Least Square (twosls) that corresponds to method 2SLS of systemfit
reduceMI

Reduce MI Formulas Take a formula in any of the reduced form or in a structural form and return the most reduced form of that formula
cite

Citation information for a 'description' object
eidat

Simulation Data for Ecological Inference
coalition2

Coalition Dissolution in Parliamentary Democracies, Modified Version
as.bootvector

Convert Boot Object to a Vector
Max

Compute the Maximum Value of a Vector
McmcHookFactor

Hook to Clean-up MCMC Factor Object
describe.probit

Describe the `probit' model to Zelig
describe.negbinom

Describe the negbinom model to Zelig
alpha

Extract ancillary parameters from `parameters' objects
getResponseTerms.list

Get Response Terms from a List-style Formula
summary.pooled.sim

Return a Summary of a Set of Pooled Simulated Interests
as.qi.qi

qi -> qi
combine

Produce All Combinations of a Set of Lists
Min

Compute the Minumum Value of a Vector
as.qi.default

??? -> qi
callToString

Convert call Object to a String
plot.MI.sim

Plot graphs of simulated multiply-imputed data
as.summarized

Generic Method for Casting Objectst as 'summarized' Objects
coef.parameters

Return Simulations of Parameter Coefficients
param.poisson

Param Method for the 'poisson' Zelig Model
param.ls

Param Method for the 'ls' Zelig Model
free1

Freedom of Speech Data
describe.zelig

Get Description Object Used to Cite this Zelig Model
multilevel

Multilevel
free2

Freedom of Speech Data
mexico

Voting Data from the 1988 Mexican Presidental Election
plot.pooled.sim

Method for plotting pooled simulations by confidence intervals
immigration

Individual Preferences Over Immigration Policy
parseFormula

Parse Zelig-style Formulae
summary.glm.robust

Summary of Generalized Linear Model with Robust Error Estimates
link

Method for extracting the link function from 'parameters' objects
macro

Macroeconomic Data
help.zelig

Help system for Zelig models
make.parameters

??? For use with cmvglm
hoff

Social Security Expenditure Data
get.package

Find the Zelig package that a particular model belong to
print.qi

Print a Quantity of Interest in Human-Readable Form
homerun

Sample Data on Home Runs Hit By Mark McGwire and Sammy Sosa in 1998.
as.description

Generic Method for Casting 'description' Objects
describe

Method to describe a model to Zelig
coalition

Coalition Dissolution in Parliamentary Democracies
makeZeligObject

Make an Individual Zelig Object
special_print_MATRIX

Method for Printing Summarized QI's in a Matrix Form
print.qi.summarized

Print Method for Summarized Quantities of Interest
turnout

Turnout Data Set from the National Election Survey
param.normal

Param Method for the 'normal' Zelig Model
param.exp

Param Method for the exp Zelig Model
rocplot

Receiver Operator Characteristic Plots
voteincome

Sample Turnout and Demographic Data from the 2000 Current Population Survey
print.summary.relogit2

Print Summary of a Rare-event Logistic Model
print.summarySim.MI

Print Multiply Imputed Simulations Summary
qi.exp

Compute quantities of interest for 'exp' Zelig models
repl

Generic Method for Replicating Data
setx.MI

Set Explanatory Variables for Multiply Imputed Data-sets This function simply calls setx.default once for every fitted model within the 'zelig.MI' object
ignore

Constructor for the 'ignore' class This class is included for future use, and is currently not used in any Zelig model. It is designed for use with zelig2* functions
param.gamma

param method for the `gamma' Zelig model
summary.Relogit2

Summary for ``Relogit2'' Fitted Model
param.negbinom

Param Method for the 'negbinom' Zelig Model
sim

Generic Method for Computing and Organizing Simulated Quantities of Interest Simulate quantities of interest from the estimated model output from zelig() given specified values of explanatory variables established in setx(). For classical maximum likelihood models, sim() uses asymptotic normal approximation to the log-likelihood. For Bayesian models, Zelig simulates quantities of interest from the posterior density, whenever possible. For robust Bayesian models, simulations are drawn from the identified class of Bayesian posteriors. Alternatively, you may generate quantities of interest using bootstrapped parameters.
newpainters

The Discretized Painter's Data of de Piles
makeModelMatrix

Make a Model Matrix from a Zelig-Style Formula
getPredictorTerms

Get Predictor Terms from Zelig-style Formulae
print.summary.MCMCZelig

Print a Summary MCMCZelig Object
print.summary.sim

Print Values of a Summarized ``sim'' Object
getResponseTerms

Get Response Terms from a Zelig-style Formula
simulations.plot

Plot Quantities of Interest in a Zelig-fashion
as.matrix.pooled.setx

Convert a ``pooled.setx'' Object to a Matrix
swiss

Swiss Fertility and Socioeconomic Indicators (1888) Data
simulation.matrix

Get Simulations as a Matrix
is.zelig.compliant

Whether a R-Package Contains a 'Yes' in its DESCRIPTION File's 'Zelig' Field
param

Generic Method for Simulating Ancillary/Auxillary Parameters of Zelig Models
zelig2-core

Zelig to Basic GLM Fitting Functions
names.qi

The Names of a 'qi' Object
sanction

Multilateral Economic Sanctions
list.depth

Count the Depth of a List Object
plot.sim

Method for plotting simulations
special_print_LIST

Method for Printing Summarized QI's in a List Form
linkinv

Method for extracting the inverse link function from 'parameters' objects
SupremeCourt

U.S. Supreme Court Vote Matrix
sim.MI

Simulate Multiply Imputed Data
sna.ex

Simulated Example of Social Network Data
setx

Setting Explanatory Variable Values
parseFormula.list

Parse List-Style Zelig Formulae
summary.MI.sim

Method for summarizing simulations of multiply imputed quantities of interest
kmenta

Simulation Data for model Three-Stage Least Square (threesls) that corresponds to method 3SLS of systemfit
grunfeld

Simulation Data for model Seemingly Unrelated Regression (sur) that corresponds to method SUR of systemfit
terms.zelig

Model Terms for a Zelig Object
structuralToReduced

Transform the Multilevel's Structural Formulas Into Reduced Form
list.zelig.dependent.packages

Get a List of Packages Installed on the Current Machine that Depend on Zelig
zelig2-bayes

Zelig Bridge Functions to Bayesian Models
repl.sim

Method for Replicating Simulated Quantities of Interest
simulations.parameters

Return Simulations of Parameter Coefficients
as.summarized.list

list -> summarized.qi Convert a list into a ``summarized.qi'' object
parseFormula.Formula

Parse ``Formula''-style Zelig Formulae
zelig2

Interface Between Zelig Models and External Functions
zelig.skeleton

Creates a Skeleton for a New Zelig package
ucfirst

Uppercase First Letter of a String
describe.ls

Describe a ls model to Zelig
description

Constructor for the 'description' class
param.relogit2

Estimate Parameters for the ``relogit'' Zelig Mdoel
param.probit

Param Method for the 'probit' Zelig Model
param.relogit

Estimate Parameters for the ``relogit'' Zelig Mdoel
summary.sim

Method for summarizing simulations of quantities of interest
print.setx.mi

Print a Bundle of Data-sets
user.prompt

Prompt User
zeligBuildWeights

Developer Utility Function for Dealing with Observation Weighting
describe.default

Default describe function for an arbitrary model This method exists solely as a backup when an author does not contribute a 'describe' function for their model
TexCite

Get a TeX-style Citation
terms.multiple

Extract Terms from a multiple Object
relogit

Fit a rare-event logistic model in Zelig
replace.call

Hook to Update the Zelig Call with the Appropriate Call Object
model.matrix.multiple

Create Design Matrix of a multiple Object
describe.exp

Describe a ``exp'' model to Zelig
bootstrap.negbinom

Bootstrap Parameters for Zelig ``negbinom'' GLM
terms.vglm

Model Terms for 'vglm' Models
plot.ci

Method for plotting pooled simulations by confidence intervals
print.sim

Print values of `sim' objects
zelig

Estimating a Statistical Model
tobin

Tobin's Tobit Data
zelig.call

Create Function Call
tolmerFormat

Convert a Formula into 'lmer' Representation from Reduced Form Take a formula in its reducd from and return it as a 'lmer' representation (from the lme4 package). This is basically removing the starting 'tag' from each term.
param.logit

Param Method for the logit Zelig Model
table.levels

Create a table, but ensure that the correct columns exist. In particular, this allows for entires with zero as a value, which is not the default for standard tables
robust.gee.hook

Classify Fitted Object as Naive or Robust
model.frame.multiple

Create Model Frame from multiple Object
PErisk

Political Economic Risk Data from 62 Countries in 1987
mi

Bundle Data-sets for Multiple Imputation
name.object

Name Elements of an Object
splitUp

Split a List into Two Lists This functions takes any list, and splits into two lists - one containing the values of arguments with specifically specified values and those without specified values.
print.summary.pooled.sim

Print a Summary of a Set of Pooled Simulated Interests
store.object

Store Object in Environment with a Fake Name
summary.MI

Summarry of Multiply Imputed Statistical Models
parameters

Constructor for `parameters' class
as.description.description

description -> description
plot.simulations

Plot Any Simulation from the Zelig Core Package
sim.default

Method for Simulating Quantities of Interest wrom 'zelig' Objects
t.setx

Matrix Transpose of a ``setx'' Object
bootstrap.default

Produce Boot-strapped Parameters for a Statistical Model
as.qi

Generic Method for Converting Various Objects into 'qi' Objects 'qi' objects are list-style objects used by the 'summarize' function to compute simple summaries about the simulated data. For readability and and simplicity purposes, the 'qi' function typically returns a list of named simulations. This list is converted internally by Zelig into a 'qi' object so that several methods can be easily applied to the Quantities of Interest: plot, summarize, and print
toBuildFormula

Build Formula ???
summarize.default

Summarize Simualted Quantities of Interest
termsFromFormula

Extract Terms from Zelig-style Formulae
summarize

Generic methonf for summarizing simualted quantities of interest
setx.default

Set explanatory variables
summary.Relogit

Summary for ``Relogit'' Fitted Model
list.zelig.models

List Zelig Models Installed on the Current Machine
zelig2-gee

Bridge between Zelig and the GEE Model Fitting Functions
zelig2-survey

Interface between Zelig and svyglm
z

Return value for a zelig2-function
friendship

Simulated Example of Schoolchildren Friendship Network
is.zelig.package

Wether an Installed R-Pack Depends on Zelig
mid

Militarized Interstate Disputes
repl.default

Default Method for Replicating Statistics
robust.glm.hook

Hook for ``glm'' Models in Zelig
param.tobit

Param Method for the tobit Zelig Model
qi.summarize

Constructor for QI Summarized Class This class takes an arbitrary number of the _same_ type of quantities of interest labels them, then merges them into one simple printable block. In particular, this class determines which print function to use based on the the type and size od data to be passed to the print function.
print.summary.relogit

Print Summary of a Rare-event Logistic Model