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
0
votes
1 answer

How to estimate an SUR model in R with factors to be projected out and clustered standard errors?

I want to estimate an SUR (Seemingly Unrelated Regressions) model. I tried using systemfit and its wrapper Zelig. But I am not able to understand how to specify factors to be projected out (i.e., add fixed effects) and cluster the standard errors,…
Anisha Garg
  • 53
  • 5
  • 10
0
votes
1 answer

Looping to extract coefficients from multiply imputed mer objects

I am having a hard time wrapping my head around this problem. I have a list, results4 which contains 5 elements, all of which are mer objects from the zelig package. The mer objects are the result of ls.mixed regressions on each of five imputed…
user836015
0
votes
1 answer

Installing zeligverse in R 4.0.2

I'm trying to use plot.ci function in the zelig library but apparently Zelig is not supported with R 4.0.2. I'm trying to see if there is a work around to access these functions or if I just can't use this library until they make the appropriate…
0
votes
1 answer

Should I put outcome variable in Matchit::matchit ()

I would like to perform a logistic regression by adjusting for propensity score. My question is, do I have to include the outcome (binary in my case) in the propensity score calculation? Otherwise how else can I link the outcome variable to the…
Seydou GORO
  • 1,147
  • 7
  • 13
0
votes
1 answer

How can I display significant stars using Zelig package

I'd like to display significant stars in the result of Zelig regression with robust Standard Errors for tobit model. Code is like this. But there are no significant stars, like normal tobit regression using AER package(tobit…
0
votes
2 answers

Mixed Logit Model in Zelig (R) -- not running -- not available anymore?

I am interested in getting first differences from a mixed logit model using the Zelig package. However, I am not able to run a mixed logit model in Zelig. I updated the Zelig package as instructed by the Zelig website. I ran the mixed logit mode…
saidnone
  • 1
  • 1
0
votes
0 answers

Using an ordered bayesian probit - how to calculate Bayesfactor?

I'm trying to find the bayesfactor for three models which I've run (code below). library(Zelig) DV1.1 <- zelig(as.factor(DV1) ~ IV1, model = "oprobit.bayes", mcmc=500000, data = DataCL) DV1.2 <- zelig(as.factor(DV1) ~ IV1 + IV2, model =…
Isobel
  • 41
  • 1
  • 3
0
votes
1 answer

Simulation "zelig style" for GLMER multilevel in r

I run a logistic mixed-effects regression with r. The regression is somehow like this: glmer ( Y~ X1 + X2 + X1:X2 + (1 | country), data = hdp, family = binomial) Now, with the fixed effects I would like to plot predicted probabilities of Y. I tried…
Ophelia
  • 55
  • 7
0
votes
1 answer

analyzing imputed data for mixed-level models in R with Amelia II / mitools / Zelig and lme4

I've been trying to analyze the results of multiple imputations in a multi-level model in R. I know that my lme4 model works. I know that my imputation is working. But using Zelig OR using mitools::MIcombine() both throw similar errors about S4…
JDB
  • 110
  • 6
0
votes
1 answer

Unable to find an inherited method for function ‘sim’ for signature ‘"Zelig-ls"’

Using R, when I run the code below, I am getting an error message. Code: library(MatchIt) library(Zelig) lw.y2loswt<-newcombined matchIt.y2loswt <- matchit(y2_LOSWT ~ y0_HLTHTH + y0_THINIMP + y0_DRELAT + y0_DPARENT +…
A.N.
  • 1
  • 2
0
votes
2 answers

Show the Result of Amelia, Multiple Imputation, by texreg or stargazer

I would like to know how to export the outcome of Multiple Imputation Amelia summary to tex or html by texreg or stargazer. However, both type of packages show the error. library(Amelia) library(Zelig) library(texreg) library(stargazer) mi…
user87562
  • 113
  • 5
0
votes
0 answers

'Incorrect number of dimensions' when running Zelig 'arima' on imputed data

I'm getting an error when I try to run an arima model with the zelig package. I'm using MI data with 20 imputations that were created with Amelia. Here is a short summary of my id and response variables: $ imp20:'data.frame': 442 obs. of 50…
ldlpdx
  • 61
  • 1
  • 13
0
votes
1 answer

interaction and first differences in zelig

I have a dataset with this structure: # libraries library(Zelig) # 5.0-12 library(datatable) # create data time <- factor(rep(-12:12, 50)) treatment <- rbinom(length(time), 1, .75) outcome <- rnorm(length(time), 1, 3) + 3 * treatment dat <-…
sdaza
  • 1,032
  • 13
  • 29
0
votes
1 answer

R: creating tex output from zelig tobit model with texreg

What I am trying to do should be fairly easy: I estimate a tobit model using the R package Zelig. From this I want to create a tex output using texreg. But what I get back is the error message: Error in (function (classes, fdef, mtable) : …
0
votes
1 answer

Installing ZeligMultilevel. Error : object ‘describe’ is not exported by 'namespace:Zelig'

I am trying to use ZeligMultilevel but I am having problems when opening the library. Please, see below: > install.packages("ZeligMultilevel") trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/ZeligMultilevel_0.7-1.zip' Content type…
Ophelia
  • 55
  • 7