Questions for add new model

38 views
Skip to first unread message

Mackenzie W

unread,
Feb 18, 2025, 6:18:47 AM2/18/25
to hbayesdm-users

Dear developers,

Hello. I am a student using the hbayesdm package and encountered some problems during its use.

Our project's goal is to use the hbayesdm package to add our new task and model for fitting. We already have our own Stan and the corresponding R code. When integrating it into the hbayesdm package, we encountered a problem with installing the developer version of the hbayesdm package. If I use the code from GitHub to install it, R prompts me that the description file is missing. I would like to clarify two questions:

  1. Is it necessary to use the developer version, and if so, how can I add the description file?

  2. Is it possible to add our model to the existing CRAN mirror version of the package? I noticed that in this version of the source files, the corresponding R code is missing.

Thank you!

Best,
Mackenzie

Jeung-Hyun Lee

unread,
Aug 29, 2025, 6:03:24 AM8/29/25
to hbayesdm-users
Hi Mackenzie, 

Apologies for the delayed response. 
Re 1/ No it is not necessary to use the developer branch, unless you want to contribute a new task/model to the package (which I will talk about more in Re 2). Could you double check if the description file was sentenced correctly (e.g. its path or filename, etc) first? Otherwise, you can create a feature branch after forking the repo, and then you can add your stan models to /stan/your_model.stan and the wrapper(s) in the folders. You might need to update internal  functions or helper codes accordingly, as well. 
Re 2/ Please refer to this guideline for task/model contribution to hBayesDM! Thanks for your interest in the package. 

All the best, 
Jeung-Hyun
Reply all
Reply to author
Forward
0 new messages