8000 AIC/BIC in BADS toolbox · acerbilab · Discussion #2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AIC/BIC in BADS toolbox #2

Answered by lacerbi
GalG87 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your question. No, there isn't such a built-in function, mostly because BADS per se is a general-purpose optimization algorithm - with applications in model fitting, but it's not strictly a statistical package.

Anyhow, AIC and BIC are easy to calculate, so you can write your own function:

aic = 2*nll_opt + 2*k
bic = 2*nll_opt + log(ndata)*k

where nll_opt is the negative maximum-likelihood solution (e.g., the best minimum of the negative log-likelihood function found by BADS), k the number of model parameters, and ndata the number of data points (e.g., trials).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lacerbi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
0