error with BART 4 para model

65 views
Skip to first unread message

Kshitij Kumar

unread,
Jul 6, 2023, 5:30:06 PM7/6/23
to hbayesdm-users
Hello, I am currently using BART with 30 trials, single balloon task with no significant modifications, but I'm encountering failure when running the model. I attempted to address the issue by filtering the data using mean pumps and running the model again, but unfortunately, it did not resolve the problem. 

Could someone provide assistance? 

I have included a screenshot of the issue for reference.
Screenshot 2023-06-28 at 12.38.36 PM.png

Jeung-Hyun Lee

unread,
Jul 6, 2023, 8:09:38 PM7/6/23
to hbayesdm-users
Hi Kshitij,

The error you are getting (Stan model does not contain samples) can happen for many reasons so it would be best if you could share the Stan model (if you have made any modifications) and small reproducible example. In this way, we can help you figure out what the problem is.

Best, 
JH

2023년 7월 7일 금요일 오전 6시 30분 6초 UTC+9에 kshtjku...@gmail.com님이 작성:

Kshitij Kumar

unread,
Jul 7, 2023, 3:48:31 AM7/7/23
to hbayesdm-users
Thank you for such quick reply!

I am not sure what is going wrong in the model. the model i am using is this: output <- bart_par4( data = "example", niter = 2000, nwarmup = 1000, nchain = 4, ncore = 4) 

I am not sure about Stan models, sorry am very new to this.
total sample are 1200+,  here is an example csv.
sample_hbayes.csv

Jeung-Hyun Lee

unread,
Jul 7, 2023, 4:20:45 AM7/7/23
to hbayesdm-users
In your dataset, the necessary data columns (subjID, explosion) that hBayesDM look for are missing. Could you rename the column names and try fitting it again? 

Best,
JH



2023년 7월 7일 금요일 오후 4시 48분 31초 UTC+9에 kshtjku...@gmail.com님이 작성:

Kshitij Kumar

unread,
Jul 7, 2023, 8:34:56 AM7/7/23
to hbayesdm-users
Hi sorry about the confusion, while running it i changed the names to the same columns as that of the model parameters, i uploaded the unedited file here, please find the correct file attached, just the column names have been changed. My sincere apologies for the same.  
sample_hbayes.csv

Kshitij Kumar

unread,
Jul 11, 2023, 3:56:57 PM7/11/23
to hbayesdm-users
hi, i am still getting the same error, can you please help!

Kshitij Kumar

unread,
Aug 1, 2023, 3:07:51 PM8/1/23
to hbayesdm-users
hi, could someone please help with the issue ?

regards

봉수현

unread,
Aug 1, 2023, 10:35:41 PM8/1/23
to hbayesdm-users
Your file is csv. It should be txt! this sample data works on my machine.

2023년 8월 2일 수요일 오전 4시 7분 51초 UTC+9에 Kshitij Kumar님이 작성:
sample_hbayes.txt

Kshitij Kumar

unread,
Aug 8, 2023, 12:40:48 AM8/8/23
to hbayesdm-users
hi, when i run it for the .txt file i get these errors:
Screenshot 2023-08-08 at 10.08.49 AM.png
Screenshot 2023-08-08 at 10.08.18 AM.png

Jeung-Hyun Lee

unread,
Aug 8, 2023, 1:09:19 AM8/8/23
to Kshitij Kumar, hbayesdm-users
You can ignore the warning but also may consider changing the initial values by yourself. Currently, the default setting uses vb estimate as the initial value but users can change it to “fixed” or “random", as needed. Please check out this link for the details. 

Best, 
JH


Jeung-Hyun Lee
PhD candidate,
Computational Clinical Science Lab.
Department of Psychology
Seoul National University 
Building 16, Room A107


2023년 8월 8일 (화) 오후 1:40, Kshitij Kumar <kshtjku...@gmail.com>님이 작성:
--
You received this message because you are subscribed to a topic in the Google Groups "hbayesdm-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hbayesdm-users/cBqBn-pTgto/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hbayesdm-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbayesdm-users/5b7e4945-7c51-4de0-9f11-8cbc20cf6c07n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages