You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, if a simple model with only one categorical parameter is used in LaplacesDemon, I get:
Fit <- LaplacesDemon(Model, Data=D, Initial.Values=IV,
Covar=NULL, Iterations=2000, Status=100, Thinning=10,
Algorithm="Slice", Specs=list(B=NULL, Bounds=c(1,2), m=100,
Type="Nominal", w=1))
...
Error in .mcmcslice(Model, Data, Iterations, Status, Thinning, Specs, :
object 'prop' not found
in .mcmcslice it looks as if prop is not initialized if the first parameter isn't 'Continuous'.
The code can easily be made to work by adding the following before the call above. However it would be good if this was fixed in the .mcmcslice itself.
Mo0 <- Model(IV, D); prop <- Mo0[["parm"]];
Also, might it be possible to add some example argument lists for categorical variables? For example, the Examples.pdf file says e.g. that a mixture model was fitted with this sampler, but does not give the example arguments for the LaplacesDemon call. For those of us who are not familiar esp. with the w argment, it would be very useful to have some guidance about arguments for the categorical parameters.
Many thanks,
Michael.
The text was updated successfully, but these errors were encountered:
I am not actively maintaining the package. Feel free to make the changes and submit a pull request. If the code looks reasonable I will likely accept it.
Thanks ... trouble is, I don't know how to do this ... is it possible to
put my post somewhere googleable for other users, until I find the time
to do a github tutorial to find out how to do what you say?
Best
MM
This issue is now publicly visible and thereby googleable. Anybody interested in working on LaplacesDemon is able to see it, can comment, or provide a patch.
But getting started with github is not difficult. You simply need to fork the project, clone your version, write the patch in your version and push it, see if R CMD check still runs and then create a pull request with the changes.
Hi, if a simple model with only one categorical parameter is used in LaplacesDemon, I get:
Fit <- LaplacesDemon(Model, Data=D, Initial.Values=IV,
Covar=NULL, Iterations=2000, Status=100, Thinning=10,
Algorithm="Slice", Specs=list(B=NULL, Bounds=c(1,2), m=100,
Type="Nominal", w=1))
...
Error in .mcmcslice(Model, Data, Iterations, Status, Thinning, Specs, :
object 'prop' not found
in .mcmcslice it looks as if prop is not initialized if the first parameter isn't 'Continuous'.
The code can easily be made to work by adding the following before the call above. However it would be good if this was fixed in the .mcmcslice itself.
Mo0 <- Model(IV, D); prop <- Mo0[["parm"]];
Also, might it be possible to add some example argument lists for categorical variables? For example, the Examples.pdf file says e.g. that a mixture model was fitted with this sampler, but does not give the example arguments for the LaplacesDemon call. For those of us who are not familiar esp. with the w argment, it would be very useful to have some guidance about arguments for the categorical parameters.
Many thanks,
Michael.
The text was updated successfully, but these errors were encountered: