GithubHelp home page GithubHelp logo

gnjardim / entrymodels Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 337 KB

Tools to estimate entry models in concentrated markets, based in Bresnahan and Reiss (1991)

Home Page: https://CRAN.R-project.org/package=entrymodels

License: Other

R 100.00%
estimate cran entry industrial-organization bresnahan reiss economics

entrymodels's Introduction

entrymodels: Estimate Entry Models

CRAN version CRAN downloads Travis build status

Tools for measuring empirically the effects of entry in concentrated markets, based in Bresnahan and Reiss (1991).

Installation

You can install the released version of entrymodels from CRAN with:

install.packages("entrymodels")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("gnjardim/entrymodels")

Which should return something similar to:

* installing *source* package 'entrymodels' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'entrymodels'
    finding HTML links ... done
    aux_matrix                              html  
    br1                                     html  
    br2                                     html  
    em_2var                                 html  
    em_basic                                html  
    load_example_data                       html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (entrymodels)

Please note that you should have Rtools installed.

Examples

Basic Model

This is a basic example which shows you how to estimate a basic entry model with our sample data.

library(entrymodels)

tb <- load_example_data()
(em <- em_basic(tb, "Populacao", "n_agencias"))
#> # A tibble: 5 x 4
#>   n_competitors critical_values[,1] alpha[,1] gamma[,1]
#>           <int>               <dbl>     <dbl>     <dbl>
#> 1             1               5238.     0.832      7.12
#> 2             2              18961.     0.832      8.19
#> 3             3              42038.     0.825      8.79
#> 4             4              75638.     0.819      9.20
#> 5             5             162958.     0.809      9.71

Two-Variable Model

This is a basic example which shows you how to estimate a two-variable entry model with our sample data.

library(entrymodels)

tb <- load_example_data()
(em <- em_2var(tb, "Populacao", "RendaPerCapita", "n_agencias"))
#> # A tibble: 5 x 4
#>   n_competitors critical_values[,1] alpha[,1] gamma[,1]
#>           <int>               <dbl>     <dbl>     <dbl>
#> 1             1               5127.      1.06      17.8
#> 2             2              19265.      1.06      19.2
#> 3             3              44458.      1.05      20.0
#> 4             4              79959.      1.05      20.6
#> 5             5             169059.      1.03      20.9

Citation

To cite package entrymodels in publications use:

Guilherme N. Jardim (2020). entrymodels: Estimate Entry Models. R package version 0.2.1. https://CRAN.R-project.org/package=entrymodels

A BibTeX entry for LaTeX users is:

  @Manual{entrymodels,
    title = {entrymodels: Estimate Entry Models},
    author = {Guilherme {N. Jardim}},
    year = {2020},
    note = {R package version 0.2.1},
    url = {https://CRAN.R-project.org/package=entrymodels},
  }

entrymodels's People

Contributors

gnjardim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.