Do you have the latest version of R? I would check that first since
demo(logit.mixed) works for me.
Kosuke
On Wed, 5 Dec 2007, Sven-Oliver Proksch wrote:
> I tried running demo(logit.mixed), but I got an error message in the
> demonstration when it is calling the sim() command:
>
>> ## Simulating draws using the default bootstrap method.
>> user.prompt()
>
> Press <return> to continue:
>
>> s.out <- sim(z.out, x = x.low, x1 = x.high)
> Error in .local(object, ...) :
> unused argument(s) (x = list("(Intercept)" = 1, education = 4, age =
> 49.2613333333333, female = 0.559333333333333, stateSC = 1), x1 =
> list("(Intercept)" = 1, education = 2, age = 49.2613333333333, female =
> 0.559333333333333, stateSC = 1))
>
> I assume the error is related to how R deals with the grouping variable (the
> stateSC=1 part). I looked in the example dataset, the variable is actually
> called "state". I had the same problem with my own data.
>
> Oliver
>
> On Dec 5, 2007, at 5:52 AM, Kosuke Imai wrote:
>
>> It works for me. Try demo(logit.mixed). Also, make sure your version is
>> actually 3.1-0. Sometimes, you have to restart R to get the latest version
>> uploaded.
>>
>> Kosuke
>>
>> ---------------------------------------------------------
>> Kosuke Imai Office: Corwin Hall 041
>> Assistant Professor Phone: 609-258-6601
>> Department of Politics eFax: 973-556-1929
>> Princeton University Email: kimai(a)Princeton.Edu
>> Princeton, NJ 08544-1012 http://imai.princeton.edu/
>> ---------------------------------------------------------
>>
>> On Tue, 4 Dec 2007, Sven-Oliver Proksch wrote:
>>
>
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options: http://lists.gking.harvard.edu/?info=zelig
Zelig program information: http://gking.harvard.edu/zelig/
It works for me. Try demo(logit.mixed). Also, make sure your version is
actually 3.1-0. Sometimes, you have to restart R to get the latest version
uploaded.
Kosuke
---------------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012 http://imai.princeton.edu/
---------------------------------------------------------
On Tue, 4 Dec 2007, Sven-Oliver Proksch wrote:
> Thanks, that seemed to work. But when I type in the Zelig logit.mixed command
> (via model="logit.mixed"), I get an error message that it isn't supported. Is
> the Cran version the latest Zelig version?
>
> Here is the error message:
>
> Error in zelig.default(formula = g ~ fsize + formateur.noncentrality + :
> logit.mixed not supported. Type help.zelig("models") to list supported
> models.
>
> Thanks for your help, and sorry for bothering you with this!
>
> Oliver
>
>
>
> On Dec 4, 2007, at 8:34 PM, Kosuke Imai wrote:
>
>> Hi,
>> You can install it from CRAN:
>>
>> install.packages("Zelig")
>>
>> Best,
>> Kosuke
>>
>> ---------------------------------------------------------
>> Kosuke Imai Office: Corwin Hall 041
>> Assistant Professor Phone: 609-258-6601
>> Department of Politics eFax: 973-556-1929
>> Princeton University Email: kimai(a)Princeton.Edu
>> Princeton, NJ 08544-1012 http://imai.princeton.edu/
>> ---------------------------------------------------------
>>
>> On Tue, 4 Dec 2007, Sven-Oliver Proksch wrote:
>>
>>> Dear Prof Kimai,
>>>
>>> I saw on the Zelig mailing list that there is a new version of Zelig that
>>> supports mixed-effects logistic regression. I tried updating the package,
>>> but I got the following error message (I am running Mac OS X):
>>>
>>>> install.packages("Zelig", repos = "http://gking.harvard.edu")
>>> Warning: unable to access index for repository
>>> http://gking.harvard.edu/bin/macosx/universal/contrib/2.6
>>> Warning message:
>>> package �Zelig� is not available
>>>
>>> Is there another way of updating the package?
>>>
>>> Thank you,
>>> sincerely,
>>> Sven-Oliver Proksch
>
Hi,
You can install it from CRAN:
install.packages("Zelig")
Best,
Kosuke
---------------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012 http://imai.princeton.edu/
---------------------------------------------------------
On Tue, 4 Dec 2007, Sven-Oliver Proksch wrote:
> Dear Prof Kimai,
>
> I saw on the Zelig mailing list that there is a new version of Zelig that
> supports mixed-effects logistic regression. I tried updating the package, but
> I got the following error message (I am running Mac OS X):
>
>> install.packages("Zelig", repos = "http://gking.harvard.edu")
> Warning: unable to access index for repository
> http://gking.harvard.edu/bin/macosx/universal/contrib/2.6
> Warning message:
> package ‘Zelig’ is not available
>
> Is there another way of updating the package?
>
> Thank you,
> sincerely,
> Sven-Oliver Proksch
Hi,
We just released version 3.1-0 of Zelig. You can install it via
install.packages("Zelig", repos = "http://gking.harvard.edu")
The version will also appear on CRAN soon. This version has major
improvements over the previous one. It inclues many new models such as
ANOVA, generalized estimating equations models, mixed effects models, Cox
proportional hazard model, and compound hierarchical ordinal probit
regression for survey vignettes. It also contains many bug fixes. Please
try it out and send us feedback!
We have also updated our paper which outlines the ideas behind Zelig.
The paper is available at:
http://gking.harvard.edu/files/abs/z-abs.shtml
Cheers,
Kosuke
---------------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012 http://imai.princeton.edu/
---------------------------------------------------------
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options: http://lists.gking.harvard.edu/?info=zelig
Zelig program information: http://gking.harvard.edu/zelig/