############## data

All data.txt contain values of 7 parameters directional Change (halfT), the probability to choose the highest probability in the three Gamble G100 = {p50 versus p25}, G25 = {p100 versus p50}, G50 = {p100 versus p25}, and the three target distibution. 82 mice are described. The first 55 are control mice (non exposed to nicotine) the next 27 are data from mice exposed to nicotine

betaphykap.txt contains the fitted value of the parameter beta, phy and Kappa for the 82 mice.

####### R (version R 4.0.0 GUI 1.71 Catalina build (7827))

############### Code ModelTroisPoints.R

ModelTroisPoints.R contains code that are used to

I) model sequence of choice given the value of three parameters beta, phi, kappa. Function modelbetaphy2

ii) described the procedure for fitting experimental data with a beta, phi, kappa model. The experimental data are explicitly given in the code as sequence of choice (2 sessions: s1 et s2) and associated matrix of transition. It is an exemple. 

iii) Code for figure 3C

############### Code Archetype.R

Archetype.R described code used to generate archetype and associated analysis (based on archetypes library R.

We also described code for generating plot fig 4E, a function (plotarchtend) for evaluating the value of a parameters depending on the archetypal composition