-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
110 lines (85 loc) · 3.23 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# entrymodels: Estimate Entry Models
<!-- badges: start -->
[](https://cran.r-project.org/package=entrymodels)
[](https://cran.r-project.org/package=entrymodels)
[](https://travis-ci.org/gnjardim/entrymodels)
<!-- badges: end -->
Tools for measuring empirically the effects of entry in concentrated markets, based in [Bresnahan and Reiss (1991)](https://www.jstor.org/stable/2937655).
## Installation
You can install the released version of `entrymodels` from [CRAN](https://CRAN.R-project.org/package=entrymodels) with:
``` r
install.packages("entrymodels")
```
And the development version from [GitHub](https://github.com/gnjardim/entrymodels) with:
``` r
# 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](https://cran.r-project.org/bin/windows/Rtools/) installed.
## Examples
### Basic Model
This is a basic example which shows you how to estimate a basic entry model with our sample data.
```{r example1, message = FALSE}
library(entrymodels)
tb <- load_example_data()
(em <- em_basic(tb, "Populacao", "n_agencias"))
```
### Two-Variable Model
This is a basic example which shows you how to estimate a two-variable entry model with our sample data.
```{r example2, message = FALSE}
library(entrymodels)
tb <- load_example_data()
(em <- em_2var(tb, "Populacao", "RendaPerCapita", "n_agencias"))
```
## 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},
}
```