Learn R Programming

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

Zelig (version 4.1-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.1-1

License

GPL (>= 2)

Maintainer

Matt Owen

Last Published

December 22nd, 2012

Functions in Zelig (4.1-1)

cmvglm

cmvglm
as.matrix.setx

Convert a 'setx' Object to a Matrix
bivariate

Sample data for bivariate probit regression
MCMChook

Hook to Clean-up MCMC Objects
approval

U.S. Presidential Approval Data
cluster.formula

Generate Formulae that Consider Clustering
ZeligListTitles

List the Titles of the Zelig Statistical Models
bootstrap.default

Produce Boot-strapped Parameters for a Statistical Model
bootstrap.gamma

Bootstrap Parameters for Zelig ``gamma'' GLM
parseFormula

Parse Zelig-style Formulae
callToString

Convert call Object to a String
coalition

Coalition Dissolution in Parliamentary Democracies
ZeligListModels

Get a Character-Vector of All Models with a 'zelig2' Function
eidat

Simulation Data for Ecological Inference
alpha

Extract ancillary parameters from `parameters' objects
Zelig-package

Zelig Everyone's Statistical Software
as.parameters.list

list -> parameters
as.qi.default

??? -> qi
print.summary.relogit2

Print Summary of a Rare-event Logistic Model
as.description.list

list -> description
describe.gamma

Describe the gamma model to Zelig
bootstrap.normal

Bootstrap Parameters for Zelig ``normal'' GLM
Reset

Reset Counter for mi Object
SupremeCourt

U.S. Supreme Court Vote Matrix
coalition2

Coalition Dissolution in Parliamentary Democracies, Modified Version
cite

Citation information for a 'description' object
Weimar

1932 Weimar election data
labels.mi

Get Labels from mi Object
PErisk

Political Economic Risk Data from 62 Countries in 1987
getResponseTerms.Formula

Get Response Terms from a ``Formula'' Object
as.summarized.summarized.qi

summarized.qi -> summarized.qi
parseFormula.Formula

Parse ``Formula''-style Zelig Formulae
Min

Compute the Minumum Value of a Vector
Median

Compute the Statistical Median of a Vector
Max

Compute the Maximum Value of a Vector
bootfn.default

Default Boot-strapping procedure
as.summarized

Generic Method for Casting Objectst as 'summarized' Objects
bootstrap

Generic Method for ``bootstrap''
describe.normal

Describe the normal model to Zelig
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
McmcHookFactor

Hook to Clean-up MCMC Factor Object
bootstrap.negbinom

Bootstrap Parameters for Zelig ``negbinom'' GLM
print.summary.sim

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

Compute the Statistical Mode of a Vector
multilevel

Multilevel
describe.zelig

Get Description Object Used to Cite this Zelig Model
klein

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

Get Details of Next data.frame from an mi Object
link

Method for extracting the link function from 'parameters' objects
is.zelig.package

Wether an Installed R-Pack Depends on Zelig
mi

Bundle Data-sets for Multiple Imputation
as.bootvector

Convert Boot Object to a Vector
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
as.bootlist

Convert of Vector of Bootstrapped Parameters to a List-style Boot Object
has.zelig2

Whether an Arbitrary R-package has a Zelig2 Function within Its Namespace
param.probit

Param Method for the 'probit' Zelig Model
getResponseTerms.list

Get Response Terms from a List-style Formula
model.matrix.multiple

Create Design Matrix of a multiple Object
model.matrix.parseFormula

Construct Design Matrix from a Parsed, Zelig-style Formula
as.parameters.parameters

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

Simulated Example of Social Network Data
print.summarySim.MI

Print Multiply Imputed Simulations Summary
find.match

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

Get Response Terms from a Zelig-style Formula
Zelig.url

Table of links for Zelig
describe.logit

Describe a `logit' model to Zelig
is.formula

Whether an Object is a Formula
makeModelMatrix

Make a Model Matrix from a Zelig-Style Formula
param.exp

Param Method for the exp Zelig Model
combine

Produce All Combinations of a Set of Lists
friendship

Simulated Example of Schoolchildren Friendship Network
as.qi.qi

qi -> qi
homerun

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

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

Describe the `probit' model to Zelig
summary.glm.robust

Summary of Generalized Linear Model with Robust Error Estimates
describe.exp

Describe a ``exp'' model to Zelig
depends.on.zelig

Whether a Statistical Package Depends on the Zelig Software Suite
summarize

Generic methonf for summarizing simualted quantities of interest
hoff

Social Security Expenditure Data
eval.in

Attach Environment and Evaluate Expression
mid

Militarized Interstate Disputes
TexCite

Get a TeX-style Citation
describe.poisson

Describe the `poisson' model to Zelig
coef.parameters

Return Simulations of Parameter Coefficients
describe.negbinom

Describe the negbinom model to Zelig
list.depth

Count the Depth of a List Object
plot.simulations

Plot Any Simulation from the Zelig Core Package
describe

Method to describe a model to Zelig
terms.multiple

Extract Terms from a multiple Object
summary.Relogit

Summary for ``Relogit'' Fitted Model
describe.tobit

Describe a ``tobit'' model to Zelig
newpainters

The Discretized Painter's Data of de Piles
print.setx

Print values of `setx' objects
macro

Macroeconomic Data
GetObject

Extract the fitted model object from the Zelig object
NextFrame

Get Next data.frame from an mi Object
robust.glm.hook

Hook for ``glm'' Models in Zelig
GetSlot.zelig

Return a Value from a zelig Fitted Model
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
sim.default

Method for Simulating Quantities of Interest wrom 'zelig' Objects
simulations.plot

Plot Quantities of Interest in a Zelig-fashion
register

Generic Method for Registering Methods to Zelig Objects This function is used internally by Zelig to produce a list of methods to reproduce for particular Zelig models.
help.zelig

Help system for Zelig models
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
makeZeligObject

Make an Individual Zelig Object
length.mi

Length Method for 'mi' Objects Compute the length of the number data-frames to be expected.
list.zelig.dependent.packages

Get a List of Packages Installed on the Current Machine that Depend on Zelig
param.normal

Param Method for the 'normal' Zelig Model
print.qi

Print a Quantity of Interest in Human-Readable Form
mix

Produce All Combinations of a Set of Lists
tobin

Tobin's Tobit Data
free1

Freedom of Speech Data
turnout

Turnout Data Set from the National Election Survey
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.
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.
print.summary.relogit

Print Summary of a Rare-event Logistic Model
is.qi

Test If Value is Interpretable as a QI
zelig2-core

Zelig to Basic GLM Fitting Functions
names.qi

The Names of a 'qi' Object
sanction

Multilateral Economic Sanctions
param.relogit2

Estimate Parameters for the ``relogit'' Zelig Mdoel
parseFormula.list

Parse List-Style Zelig Formulae
constructDesignMatrix

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

Receiver Operator Characteristic Plots
param.gamma

param method for the `gamma' Zelig model
param.default

Default Method for ``param''
free2

Freedom of Speech Data
getPredictorTerms

Get Predictor Terms from Zelig-style Formulae
plot.sim

Method for plotting simulations
param.poisson

Param Method for the 'poisson' Zelig Model
repl.default

Default Method for Replicating Statistics
linkinv

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

Build Formula ???
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.
param.relogit

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

Generic Method for Simulating Ancillary/Auxillary Parameters of Zelig Models
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.
parse.formula

Parse Formulas for Zelig Models
describe.ls

Describe a ls model to Zelig
parameters

Constructor for `parameters' class
summary.MI.sim

Method for summarizing simulations of multiply imputed quantities of interest
sim.MI

Simulate Multiply Imputed Data
get.package

Find the Zelig package that a particular model belong to
name.frames

Replace Unnamed Indices with a Default Value
simulations.parameters

Return Simulations of Parameter Coefficients
param.logit

Param Method for the logit Zelig Model
kmenta

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

Individual Preferences Over Immigration Policy
model.frame.multiple

Create Model Frame from multiple Object
t.setx

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

Summarize Simualted Quantities of Interest
make.parameters

??? For use with cmvglm
z

Return value for a zelig2-function
is.valid.qi.list

Check If Object Is a List of Valid Quantities of Interest
zelig

Estimating a Statistical Model
relogit

Fit a rare-event logistic model in Zelig
as.description

Generic Method for Casting 'description' Objects
terms.vglm

Model Terms for 'vglm' Models
param.tobit

Param Method for the tobit Zelig Model
simulation.matrix

Get Simulations as a Matrix
mexico

Voting Data from the 1988 Mexican Presidental Election
as.parameters.default

??? -> parameters
print.summary.MCMCZelig

Print a Summary MCMCZelig Object
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.
ucfirst

Uppercase First Letter of a String
list.zelig.models

List Zelig Models Installed on the Current Machine
voteincome

Sample Turnout and Demographic Data from the 2000 Current Population Survey
replace.call

Hook to Update the Zelig Call with the Appropriate Call Object
GetSlot

Generic method for extracting variables from both S3 and S4 fitted model object
repl.sim

Method for Replicating Simulated Quantities of Interest
plot.ci

Method for plotting pooled simulations by confidence intervals
zelig2-gee

Bridge between Zelig and the GEE Model Fitting Functions
param.ls

Param Method for the 'ls' Zelig Model
structuralToReduced

Transform the Multilevel's Structural Formulas Into Reduced Form
print.summary.pooled.sim

Print a Summary of a Set of Pooled Simulated Interests
zelig2-survey

Interface between Zelig and svyglm
swiss

Swiss Fertility and Socioeconomic Indicators (1888) Data
qi.exp

Compute quantities of interest for 'exp' Zelig models
repl

Generic Method for Replicating Data
plot.MI.sim

Plot graphs of simulated multiply-imputed data
print.sim

Print values of `sim' objects
print.setx.mi

Print a Bundle of Data-sets
setx.default

Set explanatory variables
robust.hook

Classify Fitted Object as Naive or Robust
special_print_MATRIX

Method for Printing Summarized QI's in a Matrix Form
terms.zelig

Model Terms for a Zelig Object
as.matrix.pooled.setx

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

Extract Terms from Zelig-style Formulae
register.default

Construct a list of available generic methods available for the object used to fit the Zelig model
summary.pooled.sim

Return a Summary of a Set of Pooled Simulated Interests
setx

Setting Explanatory Variable Values
as.summarized.list

list -> summarized.qi Convert a list into a ``summarized.qi'' object
user.prompt

Prompt User
summary.MI

Summarry of Multiply Imputed Statistical Models
summary.sim

Method for summarizing simulations of quantities of interest
MatchIt.url

Table of links for Zelig
zelig.call

Create Function Call
loadDependencies

Load External Dependencies Safely and Dynamically
retrieve.factors

Retrieve a list of all the factors in the specified column
zelig2

Interface Between Zelig Models and External Functions
as.data.frame.setx

Coerce a setx Object into a data.frame
summary.Relogit2

Summary for ``Relogit2'' Fitted 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
is.zelig.compliant

Whether a R-Package Contains a 'Yes' in its DESCRIPTION File's 'Zelig' Field
print.qi.summarized

Print Method for Summarized Quantities of Interest
ZeligDescribeModel

Produce a 'description' Object from the Name of a Model
as.description.description

description -> description
attach.env

Attach Variables to a Function
qi

Generic Method for Computing Quantities of Interest
print.zelig

Print values of ``zelig'' objects
store.object

Store Object in Environment with a Fake Name
special_print_LIST

Method for Printing Summarized QI's in a List Form
sim.relogit

Method for Simulating Quantities of Interest for the ``relogit'' Model
as.parameters

Generic Method for Converting Objects into 'parameters'
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
make.mi

Bundle Multiply Imputed Data Sets as a List
plot.pooled.sim

Method for plotting pooled simulations by confidence intervals
zelig2-bayes

Zelig Bridge Functions to Bayesian Models
summary.zelig

Zelig Object Summaries
description

Constructor for the 'description' class
param.negbinom

Param Method for the 'negbinom' Zelig Model
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
zelig.skeleton

Creates a Skeleton for a New Zelig package