Learn R Programming

locationgamer (version 0.1.0)

Identification of Location Game Equilibria in Networks

Description

Identification of equilibrium locations in location games (Hotelling (1929) ). In these games, two competing actors place customer-serving units in two locations simultaneously. Customers make the decision to visit the location that is closest to them. The functions in this package include Prim algorithm (Prim (1957) ) to find the minimum spanning tree connecting all network vertices, an implementation of Dijkstra algorithm (Dijkstra (1959) ) to find the shortest distance and path between any two vertices, a self-developed algorithm using elimination of purely dominated strategies to find the equilibrium, and several plotting functions.

Copy Link

Version

Install

install.packages('locationgamer')

Monthly Downloads

211

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Maximilian Zellner

Last Published

December 18th, 2020

Functions in locationgamer (0.1.0)

plotPrim

Plotting minimum spanning tree connecting all vertexes
plotDijkstra

Plot shortest path between two points in a network
euclidDistance

Euclidean distance between two points
randomCoordinates

Create random coordinates for network vertexes
primDistance

Minimum spanning tree using Prim's algorithm
dijkstra

Shortest path through network using dijkstra's algorithm
createDistance

Create distance matrix for a completely connected network
lgsolve

Equilibrium locations of location game
plotNetwork

Plotting a network consisting of edges and vertexes