View source: R/ProbitPathProb.r
ProbitPathProb | R Documentation |
This function calculates probabilities for selection of each path on the network based on set of path disutilities (costs). The function uses a probit random utility model. Calculations are exact for two route networks. In other case the probabilities are approximated by simulation.
ProbitPathProb(u, ODpair, A, theta, Niter = 1000)
u |
Vector of utlities on each path |
ODpair |
Vector indicating the OD pair serviced by each route. |
A |
Path-link incidence matrix |
theta |
Vector of standard deviations for link cost errors. Defaults to 1 in each case. |
Niter |
Number of iterations when computing probabilities by simulation. Defaults to 1000. |
Vector of route choice probabilities
A <- diag(2)
ODpair <- c(1,1)
u <- c(15,17)
LogitPathProb(u,ODpair,A,theta=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.