View source: R/ExpectedPathCost.r
ExpectedPathCost | R Documentation |
This function calculates expected path costs as a function of mean link flows under various probability models. Its primary use is when called by the function GSUE. For the product multinomial model, a normal approximation to higher order moments is applied unless the link path incidencde matrix is diagonal.
ExpectedPathCost(
x,
ODdemand,
ODpair,
A = diag(length(x)),
Alpha,
Beta,
pow = 4,
prob.model = "ProductMN"
)
x |
Vector of mean link flows |
ODdemand |
Vector of origin-destination (OD) travel demands |
ODpair |
Vector indicating the OD pair serviced by each route (ordered by columns of the path-link incidence matrix, A). |
A |
Path-link incidence matrix |
Alpha |
Vector of free flow travel time parameters for each link |
Beta |
Vector of capacity parameters for each link |
pow |
Polynomial order of cost function for each link. Defaults to 4. |
prob.model |
Route choice probability model. One of "ProductMN" (product multinomial, the default), or "Poisson". |
theta |
A dispersion parameter. For the logit model, a single value specifying the logit parameter. For the probit model, a vector of standard deviations for the individual link cost errors. Defaults to 1. |
Vector of expected path costs
ExpectedPathCost()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.