Hi all,
Not sure if this is the same issue, but my bug report regarding sim() and
missing values is at
Best,
Ista
On Fri, Mar 29, 2013 at 8:43 PM, Honaker, James <jhonaker(a)iq.harvard.edu>wrote;wrote:
Evann,
I'm glad you worked that out. And of course, now that correction is on the
list should it come up for others. However, those are also data issues
(missingness, factors) that we should try to catch with more proactive
internal checking in Zelig and softer, more informative error messages.
Thanks for pointing that out,
James.
--
James Honaker, Senior Research Scientist
//// Institute for Quantitative Social Science, Harvard University
-----Original message-----
*From: *"Smith, Evann" <egsmith(a)fas.harvard.edu>*
To: *"zelig(a)lists.gking.harvard.edu" <zelig(a)lists.gking.harvard.edu>*
Sent: *Fri, Mar 29, 2013 23:57:39 GMT+00:00*
Subject: *Re: [zelig] sim() problems with ordered logit: incorrect
dimensions
In case anyone is wondering, I figured out my problems.
1) I needed to set my dependent variable as a factor outside the zelig
call.
2) It didn't like that I had missing data (which produced NAs in the setx
values). Listwise deletion prior to running the model solved that problem.
Cheers,
Evann
On Mar 29, 2013, at 6:25 PM, wrote:
Hi,
When running an ordered logit, I get the following error:
d1t.x <- setx(d1t)
d1t.s <- sim(d1t, x=d1t.x)
Error in as.matrix(x)[, -1] : incorrect number of dimensions
As best I can discern, this is because the coef(d1t) command pulls the
coefficients from the model, but not the values of the intercepts. While
vcov(d1t) includes the intercepts.
Is there a fix or workaround for this? Or am I doing something else wrong?
Cheers,
Evann
====================================
Evann Smith
Ph.D. Candidate
Department of Government
Harvard University
egsmith(a)fas.harvard.edu
====================================
====================================
Evann Smith
Ph.D. Candidate
Department of Government
Harvard University
egsmith(a)fas.harvard.edu
====================================
-
--
Zelig Mailing List, served by HUIT
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/mailman/listinfo/zelig
Zelig program information:
http://gking.harvard.edu/zelig/
Zelig mailing list
Zelig(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/zelig