19 for k,v
in V.items() :
20 availBinary[k] = int(availability[k] != 0)
22 P = bioLogit(scaledV,availability,choice)
34 for k,v
in V.items() :
36 P = bioLogit(V,avail,choice)
50 chosen = Elem(V,choice)
52 for i,v
in V.items() :
53 den += exp(s * (v-chosen))
def logit(V, choice)
Compute the logit choice probability, where all alternatives are available.
def logit_av_scale(V, availability, choice, group, scale)
Compute the logit choice probability with utilities scaled according to the group.
def logit_scale(V, choice, group, scale)
Compute the logit choice probability with utilities scaled according to the group.