-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
116 lines (77 loc) · 4.63 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
111
112
113
114
115
116
---
output: github_document
editor_options:
markdown:
wrap: 72
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
message = FALSE,
warning = FALSE,
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(tibble.print_min = 5, tibble.print_max = 5)
options(scipen = 1, digits = 2)
```
# dispositionEffect <a href='https://marcozanotti.github.io/dispositionEffect/index.html'><img src="man/figures/logo.png" align="right" height="200"/></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/dispositionEffect)](https://CRAN.R-project.org/package=dispositionEffect)
![](https://cranlogs.r-pkg.org/badges/dispositionEffect?color=brightgreen)
![](https://cranlogs.r-pkg.org/badges/grand-total/dispositionEffect?color=brightgreen)
[![R build status](https://github.com/marcozanotti/dispositionEffect/workflows/R-CMD-check/badge.svg)](https://github.com/marcozanotti/dispositionEffect/actions)
[![Codecov test coverage](https://codecov.io/gh/marcozanotti/dispositionEffect/branch/main/graph/badge.svg)](https://app.codecov.io/gh/marcozanotti/dispositionEffect?branch=master)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![Website](https://img.shields.io/website?down_color=red&down_message=offline&up_color=green&up_message=online&url=https%3A%2F%2Fmarcozanotti.github.io%2FdispositionEffect%2F)](https://marcozanotti.github.io/dispositionEffect/index.html)
[![GitHub issues](https://img.shields.io/github/issues/marcozanotti/dispositionEffect)](https://github.com/marcozanotti/dispositionEffect/issues)
![GitHub R package version](https://img.shields.io/github/r-package/v/marcozanotti/dispositionEffect)
![GitHub top language](https://img.shields.io/github/languages/top/marcozanotti/dispositionEffect)
<!-- badges: end -->
The `dispositionEffect` package allows to quickly evaluate the presence
of disposition effect's behaviors of an investor based solely on his
transactions and the market prices of the traded assets.
## Installation
You can install the released version of `dispositionEffect`
from [CRAN](https://CRAN.R-project.org) with:
```{r, eval = FALSE}
install.packages("dispositionEffect")
```
Otherwise, you can also install the development version from
[GitHub](https://github.com/) with:
```{r, eval = FALSE}
install.packages("devtools")
devtools::install_github("marcozanotti/dispositionEffect")
```
## Overview
The package contains few user-friendly purpose specific interfaces:
* `portfolio_compute` is a wrapper function that compute realized and
paper gains and losses from the investor's transactions and the market
prices of the traded assets and updates the investor's portfolio
* `gains_losses` is the core function of the package. It performs all
the necessary calculations and can be used for real-time processing
(it is intended for advanced users only)
* `disposition_effect` computes the disposition effect
* `disposition_difference` computes the disposition difference
* `disposition_compute`and `disposition_summary`interfaces that allow
to easily compute disposition effect and summary statistics.
## Tutorials
* [Getting started](https://marcozanotti.github.io/dispositionEffect/articles/getting-started.html)
* [The Analysis of Disposition Effect](https://marcozanotti.github.io/dispositionEffect/articles/de-analysis.html)
* [Disposition Effect in Parallel](https://marcozanotti.github.io/dispositionEffect/articles/de-parallel.html)
* [Time Series Disposition Effect](https://marcozanotti.github.io/dispositionEffect/articles/de-timeseries.html)
## References
* Mazzucchelli, 2022, *An Analysis of Short Selling and Volatility Impact on the Disposition Effect* (working paper)
* Filippin, Mazzucchelli, and Zanotti, 2022, *Portfolio driven disposition effect: the wide framing approach* (working paper)
* Mazzucchelli, and Zanotti, 2022, *Mean reverting expectations to rationalize the disposition effect* (working paper)
* [Computing Disposition Effect on Financial Market Data](https://marcozanotti.github.io/dispostionEffect-useR2021/), 2021, useR! Conference
## Getting help
If you encounter a clear bug, please file an issue with a minimal
reproducible example on
[GitHub](https://github.com/marcozanotti/dispositionEffect/issues).
For questions and other discussion, mail us at
[zanottimarco17\@gmail.com](mailto:[email protected]).
## Acknowledgements
A special thank to [Claud Graphics](https://www.behance.net/claudiocec3c4f) for our logo.