Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code issue in "bart_par4" #157

Open
vincent5290 opened this issue Jun 5, 2023 · 1 comment
Open

code issue in "bart_par4" #157

vincent5290 opened this issue Jun 5, 2023 · 1 comment
Assignees

Comments

@vincent5290
Copy link

image
In BART_par4 model, the formula is l - vk, the optimal number of pumps on trial k (paper, titled "Development ofa novel computational model for the Balloon Analogue Risk Task: The exponential-weight mean–variance model"). However, in stanfile of "BART_par4", line 73 d[j, k, l] ~ bernoulli_logit(tau[j] * (omega - l)); is omega - l.
The code seems contrast to the formula.

@youngahn youngahn self-assigned this Jul 3, 2023
@lehlsy0904
Copy link
Contributor

Hello, @vincent5290 !

the bernoulli_logit function in Stan employs the invert-logit function during the calculation of the logarithmic Bernoulli probability. This implies that the term omega - l does not pose any issues within the model structure. For more detailed information, please check the Stan Functions Manual (https://mc-stan.org/docs/functions-reference/bernoulli-logit-distribution.html) as well as a previous related issue (#113) !

Feel free to reach out if you have any further concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants