Questions tagged [r-zelig]

Zelig is an easy-to-use, free, open source, general purpose statistics program for estimating, interpreting, and presenting results from any statistical method. Zelig turns the power of R, with thousands of open source packages — but with free ranging syntax, diverse examples, and documentation written for different audiences — into the same three commands and consistent documentation for every method.

"Zelig is an easy-to-use, free, open source, general purpose statistics program for estimating, interpreting, and presenting results from any statistical method. Zelig turns the power of R, with thousands of open source packages — but with free ranging syntax, diverse examples, and documentation written for different audiences — into the same three commands and consistent documentation for every method. Zelig uses R code from many researchers, making it "everyone’s statistical software." We hope it becomes everyone’s statistical software for applications too, as we designed it so anyone can use it or add their methods to it. We aim for Zelig to be the best way to do analysis, prepare replication files, learn new methods, or teach." - zeligproject.org

50 questions
41
votes
3 answers

Why am I getting "algorithm did not converge" and "fitted prob numerically 0 or 1" warnings with glm?

So this is a very simple question, just can't seem to figure it out. I'm running a logit using the glm function, but keep getting warning messages relating to the independent variable. They're stored as factors and I've changed them to numeric but…
ATMathew
  • 12,566
  • 26
  • 69
  • 76
7
votes
5 answers

Model Fit statistics for a Logistic Regression

I'm running a logistic regression model in R. I've used both the Zelig and Car packages. However, I'm wondering if there is a simple way to get the model fit statistics for the model. (pseudo R-square, chi-square, log liklihood,etc)
Tony
  • 71
  • 1
  • 2
6
votes
1 answer

Multi-level regression model on multiply imputed data set in R (Amelia, zelig, lme4)

I am trying to run a multi-level model on multiply imputed data (created with Amelia); the sample is based on a clustered sample with group = 24, N= 150. library("ZeligMultilevel") ML.model.0 <- zelig(dv~1 + tag(1|group),…
TiF
  • 615
  • 2
  • 12
  • 24
5
votes
1 answer

Combining Multiple Random Forest Models from Amelia Imputed Data

I just created 40 imputed data sets using the Amelia package, and they are stored in a.out. I then used the lapply function to create randomforest models on the data sets: rf.amelia.out = lapply(a.out$imputations, function(i) randomForest(y +…
5
votes
0 answers

Zelig R Cluster Standard Errors Function No Effect

Zelig does not appear to be doing anything when provided information on clusters. Am I doing something wrong? I really appreciate the ease with which this package generates predicted values for changes in a single variable--very useful for getting a…
Michael Davidson
  • 1,391
  • 1
  • 14
  • 31
3
votes
1 answer

Using stargazer with Zelig

I am trying to use stargazer (Version 5.2) to output the standard summary() results of a regression estimated with Zelig (Version 5.0.13). However, I obtain the error Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : ‘result’ is not…
3
votes
1 answer

How to simulate quantities of interest using arm or rstanarm packages in R?

I would like to know how to simulate quantities of interest out of a regression model estimated using either the arm or the rstanarm packages in R. I am a newbie in Bayesian methods and R and have been using the Zelig package for some time. I asked…
danilofreire
  • 503
  • 1
  • 5
  • 18
2
votes
1 answer

How to recode variables in 5 pooled Amelia output at once?

I am using Amelia and Zelig in R to do multiple imputation of my datasets with uncleaned variables. The reproducible dataset is in Zelig package. require(Zelig) require(Amelia) data(freetrade) a.out <- amelia(freetrade, m = 5, ts = "year", cs =…
Lily
  • 637
  • 2
  • 7
  • 16
2
votes
1 answer

R: Ordered logistic regression with multiple imputation data (amelia package)

I am analyzing data from European Social Survey. Due to quite a bit of missing data I have used the amelia package for imputation. The dependent value is ordinal with 4 values, and I had therefore planned to perform a ordered logistic regression…
Nora H.
  • 63
  • 6
2
votes
0 answers

exponential transformation of dependent variable in Zelig

I apologize in advance if this question is too esoteric. I am using the Zelig package in R with a log-log regression model: z.out <- zelig(lnDONATIONS ~ lnPRICE + lnFUNDRAISING + lnAGE, model = "ls", data = mydata) x.out <- setx(z.out) s.out <-…
Gregory Saxton
  • 1,241
  • 4
  • 13
  • 29
2
votes
1 answer

Error in eigen(Sigma, symmetric = TRUE) : infinite or missing values in 'x' with zelig logistic regression

So I am trying to do propensity score matching and then utilize Zelig to perform a logistic regression on the matched data. Here is an example of what my data looks like: DATA So I am trying to match the patients based on Dementia, Stroke, and Age.…
Ben Walker
  • 21
  • 2
2
votes
1 answer

What is the function call to extract the mean of first differences from a Zelig sim() object?

I am trying to extract the mean value of the first differences from an ordered probit model I ran with Zelig. If I just call the name of the object created by the sim() function, I get a print-out of the mean values for each value the DV takes. I'm…
ModalBro
  • 544
  • 5
  • 25
2
votes
1 answer

Extracting output from `zlogit$sim()` (Zelig)

I'm still trying to get used to the totally new syntax the developers of Zelig are working towards (in Zelig5, instructions for installing the current development version here). Feels very Pythonic, except, not... Anyway, I just want to store the…
MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
2
votes
1 answer

Getting Zelig to work with lists

I want to take a list of matched data sets (where observations are being matched on their propensity scores, using the MatchIt Package) for subsequent modelling in the Zelig Package. In this example, there are two treatments I'll match on (t1 and…
tomw
  • 3,114
  • 4
  • 29
  • 51
2
votes
1 answer

How can one simulate quantities of interest from the posterior density in MCMCglmm?

I would like to simulate quantities of interest from a model estimated with MCMCglmm more or less the way Zelig package does. In Zelig you can set the values you want for the independent values and software calculates the result for the outcome…
danilofreire
  • 503
  • 1
  • 5
  • 18
1
2 3 4