| fpa_simulate | R Documentation |
Draws private values with a given marginal quantile function and an exchangeable Archimedean copula (independent private values by default), and computes exact equilibrium bids with [fpa_bid_function()].
fpa_simulate(
L,
n,
Q,
q = NULL,
family = "independence",
theta = NULL,
p0 = 0,
eta = 0,
bid_function = NULL
)
L |
number of auctions. |
n |
number of bidders per auction. |
Q |
quantile function of private values (a function of 'u'). |
q |
quantile density of private values (a function of 'u'); if 'NULL' it is obtained by numerical differentiation of 'Q'. |
family |
'"independence"', '"clayton"', '"gumbel"' or '"frank"'. |
theta |
copula parameter (ignored for independence). |
p0 |
screening quantile of the reserve price (default 0, no reserve). |
eta |
CRRA risk-aversion parameter in |
bid_function |
optional precomputed output of [fpa_bid_function()]. |
a list with matrices 'values' and 'bids' ('L' by 'n') and the bid function used.
set.seed(1)
sim <- fpa_simulate(20, 5, Q = function(u) qlnorm(u, 0, 0.5))
str(sim$bids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.