Description Usage Arguments See Also Examples
Example model definition function. Records a version of Fuchs & Lippi's independent monetary policy game. Here, monetary policy "spills over" from one country to another, so policymakers target not only their own inflation rate, but also it relative to their neightbor's. This function returns the a list of actions, payoffs, and a discount factor to define the game. These can then be used by model.initiate
to generate a model description used in the body of the AS algorithm. This example also contains answers in the 'ans' list entry generated by Richard Kratzwer's rgsolve algorithm, when the default model options are passed. These are used in accuracy tests.
1 | examples.FL.union(opts)
|
The list opts
should be passed with the following entries:
iActs |
is the integer number of actions available to each player. Default is 40. |
piRange |
the range f inflation choices for each country. Default is (-5,5). |
model.initiate
examples.PD
, examples.sexes
, examples.AS
, examples.cournot
1 2 3 4 5 6 7 8 9 10 | model.defn <- examples.FL.union()
model.defn$delta
# Print the discount factor
model <- model.initiate( examples.FL.union )
# Pre-process the model
sol <- abSan.eqm( model=model )
# Solve
model <- model.initiate( examples.FL.union, opts=list( 'iActs' = 80, piRange=c(-8,8) ) )
sol <- abSan.eqm( model=model )
# Alternative use
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.