Error in tutorial 09

Welcome to the forum for R2MLwiN users. Feel free to post your question about R2MLwiN here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to R2MLwiN: Running MLwiN from within R >> http://www.bris.ac.uk/cmm/software/r2mlwin/
Post Reply
adeldaoud
Posts: 63
Joined: Sat Aug 15, 2015 4:00 pm

Error in tutorial 09

Post by adeldaoud »

Hi,

I am working through tutorial 09: http://www.bristol.ac.uk/cmm/media/r2ml ... rGuide09.R

Buty I am getting the following error:

> (mymodel4 <- runMLwiN(logit(use) ~ 1 + lc + age + (1 | district), D = "Binomial", data = bang))
Error in UseMethod("droplevels") :
no applicable method for 'droplevels' applied to an object of class "c('double', 'numeric')"

Any ideas?

Thanks
ChrisCharlton
Posts: 1353
Joined: Mon Oct 19, 2009 10:34 am

Re: Error in tutorial 09

Post by ChrisCharlton »

This looks like the same error as in https://www.cmm.bristol.ac.uk/forum/vie ... f=7&t=1518, which should have been fixed in the current development version. Unfortunately the github mirror does not appear to have been updating recently, so I have attached the latest development version to this topic. Could you try again with this and see if you experience the same problem? If so I will look into it in more detail.
Attachments
R2MLwiN_0.8-3.tar.gz
(334.95 KiB) Downloaded 366 times
adeldaoud
Posts: 63
Joined: Sat Aug 15, 2015 4:00 pm

Re: Error in tutorial 09

Post by adeldaoud »

Thanks, Chris. I will have a look.
Post Reply