MyNixOS website logo
Description

Estimate First-Price Auction Model.

Estimates a first-price auction model with conditionally independent private values as described in MacKay (2020) <doi:10.2139/ssrn.3096534>. The model allows for unobserved heterogeneity that is common to all bidders in addition to observable heterogeneity.

Auction Modeling

auctionr

A package for R to estimate private-value auction models while allowing for unobservable auction-specific heterogeneity.

Installation

# Install auctionr from CRAN
install.packages("auctionr")

# Or the development version from GitHub:
# install.packages("remotes")
# library(remotes)
install_github("ajmack/auctionr", build_vignettes = T)

Getting started

There are two functions available in the package:

  • auction_generate_data() allows the user to generate sample data from the principal model used in the package.

  • auction_model() calculates maximum likelihood estimates of parameters of the principal model for the data provided by the user.

library(auctionr)

set.seed(100)
dat <- auction_generate_data(obs = 100, mu = 10, alpha = 2, sigma = 0.2,
                             beta = c(-1,1), new_x_mean= c(-1,1), new_x_sd = c(0.5,0.8))

res <- auction_model(dat,
                    init_param =  c(8, 2, .5, .4, .6),
                    num_cores = 1,
                    method = "BFGS",
                    control = list(trace=1, parscale = c(1,0.1,0.1,1,1)),
                    std_err = TRUE)
## initial  value 1339.327262 
## iter  10 value 434.301377
## iter  20 value 410.711195
## final  value 410.710822 
## converged
## 
res
## 
## Estimated parameters (SE):                             
##   mu      11.012673 (1.152635)
##   alpha    1.752769 (0.185499)
##   sigma    0.204230 (0.035286)
##   beta[1] -0.920617 (0.057040)
##   beta[2]  1.068096 (0.040026)
## 
## Maximum log-likelihood = -410.711

For further information

Background and details about the model implemented here are available in Mackay, Alexander. 2020. Contract Duration and the Costs of Market Transactions..

Metadata

Version

0.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD 13
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd13
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd13
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows