Page 1 of 1

Error in tutorial 09

Posted: Tue Aug 23, 2016 3:03 pm
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

Re: Error in tutorial 09

Posted: Tue Aug 23, 2016 4:11 pm
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.

Re: Error in tutorial 09

Posted: Tue Aug 23, 2016 5:17 pm
by adeldaoud
Thanks, Chris. I will have a look.