Description Usage Arguments Value See Also Examples
Processes a model definition function in two ways.  First, it repackages the payoffs and actions for easier use in the rest of the code.  Second, it computes the other properties of a game, such as the marginal gain from deviating, which the Abreu-Sannikov code uses. These are then returned as a list for use in other functions, such as, abSan.eqm.
1  | model.initiate(defn.fn, opts)
 | 
defn.fn | 
 the model definition function.  This must return a list including the following four entries:   | 
opts | 
 a list of options to pass to the model definition function   | 
Returns a list of components used in the Abreu-Sannikov algorithm:
iActions | 
 2-vector of the number actions for each player.  | 
mA | 
 a (2,m)-matrix, where m is the number of *joint* actions. Each row contains the action indices for the two players associated with that joint action.  | 
mF | 
 payoffs associated with the joint actions listed in mA.  | 
mH | 
 the gain from deviating from each joint action for the two players. Abreu-Sannikov's h(a) function.  | 
delta | 
 the discount factor.  | 
iJointActs | 
 the number of joint actions.  | 
minmax | 
 the minmax values of the stage game.  | 
examples.PD, examples.sexes, examples.cournot, examples.AS, examples.FL.union
1 2  | model <- model.initiate( examples.FL.union, opts=list( 'iActs' = 80, piRange=c(-8,8) ) )
  # Initiate a model with a large number of actions
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.