alireza beheshty
unread,May 18, 2021, 10:40:44 PM5/18/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nimble-users
Hi
I run my model but now I see it has an error.
I don't know this is an important error and make a mistake for result?
Thanks
----------------------------------------------------------------------------------------------------------
> mcmc.out <- nimbleMCMC(code = SLMMCode, data = SLMMdata,
+ constants = SLMMConsts,
+ inits = SLMMInits,
+ monitors = c("bm","b","phi", "tau_w",
+ "alpha", "latent", "tau_y"),
+ niter = 50000,
+ thin = 10, nchains = 1, setSeed = TRUE)
----------------------output----------------------------------------------------------------------------
defining model...
building model...
setting data and initial values...
running calculate on model (any error reports that follow may simply
reflect missing values in model variables) ... Error in
solve.default(x) :
Lapack routine dgesv: system is exactly singular: U[49,49] = 0
checking model sizes and dimensions... This model is not fully
initialized. This is not an error. To see which variables are not
initialized, use model$initializeInfo(). For more information on model
initialization, see help(modelInitialization).
checking model calculations...
Error in solve.default(x) :
Lapack routine dgesv: system is exactly singular: U[49,49] = 0
Error in solve.default(x) :
Lapack routine dgesv: system is exactly singular: U[49,49] = 0
Note: cannot calculate logProb for node prec_W[1:211, 1:211] .
Error in chol.default(model$prec_W[1:211, 1:211]) :
the leading minor of order 1 is not positive definite
Note: cannot calculate logProb for node
lifted_chol_oPprec_W_oB1to211_comma_1to211_cB_cP[1:211, 1:211] .
NAs were detected in model variables: prec_W, bm, logProb_bm,
lifted_chol_oPprec_W_oB1to211_comma_1to211_cB_cP, W, logProb_W, b,
mu_y, logProb_y.
model building finished.
compiling... this may take a minute. Use 'showCompilerOutput = TRUE'
to see C++ compilation details.
compilation finished.
running chain 1...
warning: value of deterministic node prec_W[1:211, 1:211]: value is NA
or NaN even after trying to calculate.
warning: value of deterministic node
lifted_chol_oPprec_W_oB1to211_comma_1to211_cB_cP[1:211, 1:211]: value
is NA or NaN even after trying to calculate.
warning: value of stochastic node W[1:211]: value is NA or NaN even
after trying to simulate.
warning: problem initializing stochastic node W[1:211]: logProb is NA or NaN.
warning: value of deterministic node mu_y[1]: value is NA or NaN even
after trying to calculate.