37 def mev(V,Gi,av,choice) :
39 for i,v
in V.items() :
40 H[i] = Elem({0:0, 1: v + log(Gi[i])},av[i]!=0)
41 P = bioLogit(H,av,choice)
75 def logmev(V,Gi,av,choice) :
77 for i,v
in V.items() :
78 H[i] = Elem({0:0, 1: v + log(Gi[i])},av[i]!=0)
79 logP = bioLogLogit(H,av,choice)
123 for i,v
in V.items() :
124 H[i] = v + log(Gi[i]) + correction[i]
126 P = bioLogit(H,av,choice)
171 for i,v
in V.items() :
172 H[i] = v + log(Gi[i]) + correction[i]
174 P = bioLogLogit(H,av,choice)
def logmev(V, Gi, av, choice)
Log of the choice probability for a MEV model.
def mev_selectionBias(V, Gi, av, correction, choice)
Choice probability for a MEV model, including the correction for endogenous sampling as proposed by B...
def logmev_selectionBias(V, Gi, av, correction, choice)
Log of choice probability for a MEV model, including the correction for endogenous sampling as propos...
def mev(V, Gi, av, choice)
Choice probability for a MEV model.