monotonicity

R package: monotonicity

https://github.com/skoestlmeier/monotonicity

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.0%) to scientific vocabulary

Keywords

monotonicity portfolio-analysis r r-package
Last synced: 9 months ago · JSON representation

Repository

R package: monotonicity

Basic Info
  • Host: GitHub
  • Owner: skoestlmeier
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 104 KB
Statistics
  • Stars: 9
  • Watchers: 0
  • Forks: 3
  • Open Issues: 0
  • Releases: 0
Topics
monotonicity portfolio-analysis r r-package
Created about 8 years ago · Last pushed over 4 years ago
Metadata Files
Readme Contributing License Code of conduct

README.md

monotonicity

Overview

CRAN_Status_Badge Project Status: Active – The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status Build status codecov Total Downloads License

monotonicity is an R package providing several monotonicity tests for asset returns based on portfolio sorts. Its first version is mainly based on the paper Monotonicity in asset returns: New testes with applications to the term structure, the CAPM, and portfolio sorts by Andrew Patton and Allan Timmermann. Please see Andrew Pattons Matlab code page Nr. 8 for the original Matlab code or his Exec&Share profile providing an online executable version of monotonicity tests.

Key Features

Functions for monotonicity tests on asset returns based on portfolio sorts:

  • Wolak Test
  • Up and Down Test
  • MR (Monotonic Relationship) Test
  • Weak monotonicity test using Bonferroni bounds
  • Stationary Bootstrap Simulation

Installation

```r

The easiest way to install monotonicity is to download via CRAN

install.packages("monotonicity")

Alternatively, you can install the development version from GitHub

install.packages("devtools")

devtools::install_github("skoestlmeier/monotonicity") ```

Notes

The monotonicity tests provided by this package are mostly based on simulated bootstrap samples. The results may therefore slightly differ for repeated tests.

For an estimation of the variation of the results, we exemplarily run the MR (Monotonic Relationship) Test provided by the function monoRelation 1,000 times with identical input data. We observed the following results for the mean studentised p-value, using the provided R package and in comparison Andrew Pattons original Matlab code:

| Software | Mean | Minimum | Maximum | Standard deviation | --- | --- | --- | --- | ---| | Matlab | 0.032 | 0.014 | 0.047 | 0.0057 | R | 0.031 | 0.018 | 0.048 | 0.0064

In fact, the observed variation seems to be acceptable and should not affect any decision based on the returning p-value, when using the recommended number of 1,000 bootstrap replications.

Contributing

Constributions in form of feedback, comments, code, bug reports or pull requests are most welcome. How to contribute:

  • Issues, bug reports, or desired expansions: File a GitHub issue.
  • Fork the source code, modify it, and issue a pull request through the project GitHub page.

Please read the contribution guidelines on how to contribute to this R-package.

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Owner

  • Name: Siegfried Köstlmeier
  • Login: skoestlmeier
  • Kind: user
  • Location: Regensburg, Germany

PhD student at the Chair of Business Administration, Financial Services, University of Regensburg. My research interest is empirical asset pricing/macro-finance

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 71
  • Total Committers: 2
  • Avg Commits per committer: 35.5
  • Development Distribution Score (DDS): 0.014
Top Committers
Name Email Commits
Siegfried Köstlmeier s****r@g****m 70
nemobis f****a@t****t 1
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 235 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: monotonicity

Test for Monotonicity in Expected Asset Returns, Sorted by Portfolios

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 235 Last month
Rankings
Forks count: 14.9%
Stargazers count: 18.7%
Dependent packages count: 29.8%
Average: 32.9%
Dependent repos count: 35.5%
Downloads: 65.8%
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.3 depends
  • MASS * imports
  • lmtest * imports
  • methods * imports
  • sandwich * imports
  • stats * imports
  • utils * imports
  • testthat * suggests
  • xts * suggests