Error in model.frame.default

896 views
Skip to first unread message

ugoline godeau

unread,
Dec 7, 2016, 10:39:54 AM12/7/16
to nimble-users
Hello Nimble users,

That the second time in 2 days I need your help but I prefere to ask than to stay for 1 week with my error.

I tried the exemple (pump) and it is working perfectly fine. But when I make my own model with more complicate data I have a problem. All is working fine, but when I ask for the results with summary(samplesList), I only have NAs and I have this error  :

Error in model.frame.default(formula = x[, i] ~ z, drop.unused.levels = TRUE) :

  les longueurs des variables diffèrent (trouvé pour 'z')


(in english : variable lengths differ (found for 'z')

The problem is that I don't use any z so it may be in Nimble code but I don't know were and what is z. 

Maybe I don't define well my datas and constants :

In my data list there is : the explained variable (length 300)

In my constants list there are :
the explanatory variable (length 300)
A hierachization variable (length 300 with 30 levels)
The number of obervations (=300 length 1)
sd of x  (length 1)
the two quantiles (length 2)
the number of level of my hierrachisation variable (=30, length 1)
Another explanatory variable (length 300)


Tell me if you need more informations but I am not allowed to share my datas and model because there are not published yet.

Thank you in advance

Ugoline



Chris Paciorek

unread,
Dec 7, 2016, 11:09:26 AM12/7/16
to ugoline godeau, nimble-users
I think we'll need a bit more detail on the code you are running.

Could you tell us how you are creating 'samplesList'?

More generally feel free to send the model code and code for how you
are running the MCMC to nimble...@gmail.com so that we can help but
without having the code be public.

chris

On Wed, Dec 7, 2016 at 8:05 AM, Chris Paciorek
<paci...@stat.berkeley.edu> wrote:
> I think we'll need a bit more detail on the code you are running.
>
> Could you tell us how you are creating 'samplesList'?
>
> More generally feel free to send the model code and code for how you
> are running the MCMC to nimble...@gmail.com so that we can help but
> without having the code be public.
>
> chris
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nimble-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to nimble-users...@googlegroups.com.
>> To post to this group, send email to nimble...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/nimble-users/24389d18-ca07-44f5-8bce-d92f78fc5646%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages