plot.nash.eq: Plot function for Nash equilibrium object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plot.nash.eq.R

Description

Plot function for Nash equilibrium object

Usage

1
2
## S3 method for class 'nash.eq'
plot(x,...)

Arguments

x

a nash.eq object

...

additional arguments passed to the inner plot function

Details

See vignette.

Author(s)

Luigi Curini, Stefano M. Iacus

See Also

See Also as equilibrium

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
data(italy2006)
election <- mlogit.data(italy2006 , shape="wide", choice="vote", varying=c(5:14), sep="_")
m <- mlogit(vote~prox+partyID | gov_perf+sex+age+education, election, reflevel = "UL")

true.pos <- list(FI=7.59, UL=3.50, RC=1.95, AN=8.08, UDC=5.66)
true.votes <- list(FI=.24, UL=.40, RC=.10, AN=.18, UDC=.08)

# comparison against true votes and party positions
nash.eq <- equilibrium(model=m, data=election, pos=true.pos, votes=true.votes)
nash.eq
par(mfrow=c(3,1))
plot(nash.eq)



# bootstrap confidence intervals
nash.eq <- equilibrium(model=m, data=election, boot=10)
nash.eq
plot(nash.eq)

par(mfrow=c(1,1))

## End(Not run)

nopp documentation built on May 31, 2017, 3:45 a.m.