I want to estimate 7 observed species categories along with 5 unobserved species categories as a bivariate model transferring the data into c(midpoints, log(range)) as data come in as intervals. some data only have midpoints(centre estimates recorded and thus their corresponding log(range)) are coded as parameters to be estimated in the model. There are potentially 32 combinations of models (2^5, depending on which UNOBSERVED species categories are in the model and rather than writing 32 separate files for each combination of model, I would write a single model using indicator such (1,1,1,1,1) denoting which UNOBSERVED species categories are in that particular model. In the model, I record DIC and the aim is to compare each combination of model and choose the one with the smallest DIC to be able to say that particular unobserved species are indeed in the model/ be able to estimated by the model given the data.
Also there is intrinsic hierarchical structure within the species categories. Such as, insects+arthropods=terrestrial etc.
Hi Bob:Thank you so much for your reply and I will look into using non-centred parameterisation for my model.For the missing data problems, I have 16 observations where their log(range) are missing and I code them as parameters to be estimated in the model and the following the are the results. Where [5,1] indicating the 5th missing observations and [5,1] is the observed midpoints and [5,2] is the log(range) estimated by the model.
| y1_complete[5,1] 0.30 0.00 0.00 0.30 0.30 0.30 0.30 0.30 2 0.99 | ||||||||||||||
| y1_complete[5,2] 0.97 0.12 3.37 -4.96 -0.89 0.87 2.65 8.11 733 1.00 | ||||||||||||||
| y1_complete[6,1] 8.00 0.00 0.00 8.00 8.00 8.00 8.00 8.00 800 NaN | ||||||||||||||
| y1_complete[6,2] 1.99 0.03 0.81 0.55 1.46 1.93 2.44 3.69 747 1.00 | ||||||||||||||
| y1_complete[7,1] 2.00 0.00 0.00 2.00 2.00 2.00 2.00 2.00 800 NaN | ||||||||||||||
| y1_complete[7,2] -0.28 0.03 0.83 -2.04 -0.81 -0.23 0.29 1.12 760 1.00 | ||||||||||||||
| y1_complete[8,1] 4.00 0.00 0.00 4.00 4.00 4.00 4.00 4.00 800 NaN | ||||||||||||||
| y1_complete[8,2] 0.47 0.03 0.75 -1.07 0.01 0.51 0.93 1.84 800 1.00 | ||||||||||||||
| y1_complete[9,1] 8.00 0.00 0.00 8.00 8.00 8.00 8.00 8.00 800 NaN | ||||||||||||||
| y1_complete[9,2] 2.04 0.03 0.83 0.56 1.50 1.98 2.49 3.89 800 1.00 | ||||||||||||||
| y1_complete[10,1] 30.00 0.00 0.00 30.00 30.00 30.00 30.00 30.00 800 NaN | ||||||||||||||
| y1_complete[10,2] 3.15 0.04 1.04 1.24 2.56 3.11 3.73 5.36 800 1.00 | ||||||||||||||
| y1_complete[11,1] 6.60 0.00 0.00 6.60 6.60 6.60 6.60 6.60 2 1.01 | ||||||||||||||
| y1_complete[11,2] 1.47 0.03 0.82 -0.12 0.94 1.47 1.98 3.14 800 1.00 |
Also, may I ask again about the divergent transitions after warmup, even if I set my control = list(adapt_delta=0.9999999999,max_treedepth=12,stepsize=0.0001) and sometimes I got divergent transitions varying between 1-7, should I be worried about it? Can I trust my posterior distributions for further analyses? I read one of the papers written by stan developers, there it claimed that ideally, there should be no divergent transitions after warmup, however, in reality I did get few, can I get away with it or it is considered to be quite bad and indicating my model is not well constructed?
Thank you all for your suggestions and explanations, I am modifying my model and trying to reduce and keep what is essence in my model. Hopefully, the model would work.
Dear Stan developers:
Is there a way to figure out where the divergences happen? I only
see displays in RStan of where the initial point is, but the diverging
neighborhood is only indirectly related to these locations.
Can running adaptation longer help? The reason I ask is that if step
sizes / mass matrix is too big, it'll also cause divergences.