running code in version 0.6-11, not working in 0.6-12

19 views
Skip to first unread message

Guillaume Dauphin

unread,
Nov 28, 2018, 4:43:41 PM11/28/18
to nimble-users
Hi all,

I'm a recent user of nimble, I was working on a simple linear multivariate model on a machine that had the 0.6-11 version of nimble.
Everything was working fine, bu I have now moved on a machine that has the 0.6-12 version installed on and i get the following error during the compiling step:

'Error: Failed to create the shared library'


See below the model's code


model_nimble2 <- nimbleCode({

   ## Priors
  
  sigma~dunif(0,10)
  tau <- pow(sigma,-2)

  sigma_pred~dunif(0,100)
  tau_pred <- pow(sigma_pred,-2)
    
  beta0 ~ dnorm(0,0.01)
  beta0_pred ~ dnorm(0,0.01)
  
  for(k in 1:K){
    beta[k] ~ dnorm(0,0.01)
    beta_pred[k] ~ dnorm(0,0.01)
  }

  for (i in 1:n_reading){
    Dat[i,10]~ dnorm(mu[i], tau)
    mu[i] <-  beta0 + beta[1] * Dat[i,8] + 
      beta[2] * Dat[i,11] + beta[3] * Dat[i,12]
    
    ## Predict the True length based only on covariates available in "normal" conditions
       Dat_pred[i,8] ~ dnorm(mu_pred[i], tau_pred)
    mu_pred[i] <- beta0_pred + beta_pred[1] * Dat_pred[i,10] + beta_pred[2] * Dat_pred[i,11] + 
      beta_pred[3] * Dat_pred[i,12] 
 
  }
  ## END model
}

)

Constants are entered as follow (Dat is a data frame

nimble_data <- list(K=K,
                    n_fish=n_fish,
                    n_reading=n_reading , 
                    fish_r=fish_r,
                    Dat=Dat,
                    Dat_pred = Dat,
                    mu=rep(0,n_reading),
                    mu_pred=rep(0,n_reading)
)




Thanks in advance for any help/suggestion

G







Chris Paciorek

unread,
Nov 28, 2018, 7:33:52 PM11/28/18
to guillaum...@gmail.com, nimble...@googlegroups.com
Hi Guillaume, could you send us a full reproducible example (by
providing the values that are used in constructing nimble_data, and
showing how you create the model and do the compilation?
Feel free to share simulated data rather than the real data if you prefer.

Also please let us know the output of the compileNimble call when use
include "showCompilerOutput=TRUE" as an argument to the call.

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/728416d8-2212-4b73-b1e5-1acf4c1cb332%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages