42 for i,v
in V.items() :
43 H[i] = Elem({0:0, 1: v + log(Gi[i])},av[i]!=0)
44 P = bioLogit(H,av,choice)
78 def logmev(V,Gi,av,choice) :
80 for i,v
in V.items() :
81 H[i] = Elem({0:0, 1: v + log(Gi[i])},av[i]!=0)
82 logP = bioLogLogit(H,av,choice)
126 for i,v
in V.items() :
127 H[i] = v + log(Gi[i]) + correction[i]
129 P = bioLogit(H,av,choice)
174 for i,v
in V.items() :
175 H[i] = v + log(Gi[i]) + correction[i]
177 P = bioLogLogit(H,av,choice)
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 logmev(V, Gi, av, choice)
Log of the choice probability for a MEV model.
def piecewise(x, beta, slopes)
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...