Package: PINstimation 0.1.3.9000

PINstimation: Estimation of the Probability of Informed Trading

A comprehensive bundle of utilities for the estimation of probability of informed trading models: original PIN in Easley and O'Hara (1992) and Easley et al. (1996); Multilayer PIN (MPIN) in Ersan (2016); Adjusted PIN (AdjPIN) in Duarte and Young (2009); and volume-synchronized PIN (VPIN) in Easley et al. (2011, 2012). Implementations of various estimation methods suggested in the literature are included. Additional compelling features comprise posterior probabilities, an implementation of an expectation-maximization (EM) algorithm, and PIN decomposition into layers, and into bad/good components. Versatile data simulation tools, and trade classification algorithms are among the supplementary utilities. The package provides fast, compact, and precise utilities to tackle the sophisticated, error-prone, and time-consuming estimation procedure of informed trading, and this solely using the raw trade-level data.

Authors:Montasser Ghachem [aut, cre, cph], Oguz Ersan [aut]

PINstimation_0.1.3.9000.tar.gz
PINstimation_0.1.3.9000.zip(r-4.5)PINstimation_0.1.3.9000.zip(r-4.4)PINstimation_0.1.3.9000.zip(r-4.3)
PINstimation_0.1.3.9000.tgz(r-4.4-any)PINstimation_0.1.3.9000.tgz(r-4.3-any)
PINstimation_0.1.3.9000.tar.gz(r-4.5-noble)PINstimation_0.1.3.9000.tar.gz(r-4.4-noble)
PINstimation_0.1.3.9000.tgz(r-4.4-emscripten)PINstimation_0.1.3.9000.tgz(r-4.3-emscripten)
PINstimation.pdf |PINstimation.html
PINstimation/json (API)
NEWS

# Install 'PINstimation' in R:
install.packages('PINstimation', repos = c('https://monty-se.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/monty-se/pinstimation/issues

Datasets:

On CRAN:

clustering-analysisexpectation-maximisation-algorithmhierarchical-clusteringinformation-asymmetrymarket-microstructuremaximum-likelihood-estimationmixture-distributionspoisson-distribution

33 exports 30 stars 2.58 score 50 dependencies 14 scripts 290 downloads

Last updated 2 months agofrom:3045e74a0b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 27 2024
R-4.5-winOKAug 27 2024
R-4.5-linuxOKAug 27 2024
R-4.4-winOKAug 27 2024
R-4.4-macOKAug 27 2024
R-4.3-winOKAug 27 2024
R-4.3-macOKAug 27 2024

Exports:adjpinaggregate_tradesclassify_tradesdetectlayers_edetectlayers_ecmdetectlayers_egfact_adjpinfact_mpinfact_pin_efact_pin_ehofact_pin_lkgeneratedata_adjpingeneratedata_mpinget_posteriorsgetSummaryinitials_adjpininitials_adjpin_clinitials_adjpin_rndinitials_mpininitials_pin_eainitials_pin_gwjinitials_pin_yzmpin_ecmmpin_mlpinpin_bayespin_eapin_gwjpin_yzselectModelset_display_digitsshowvpin

Dependencies:base64encbslibcachemclicodacodetoolsdigestdplyrevaluatefansifastmapfontawesomefsfurrrfuturegenericsglobalsgluehighrhtmltoolsjquerylibjsonliteknitrlatticelifecyclelistenvmagrittrmemoisemimenloptrparallellypillarpkgconfigpurrrR6rappdirsrbibutilsRdpackrlangrmarkdownsassskellamtibbletidyselecttinytexutf8vctrswithrxfunyaml

Get started

Rendered fromPINstimation.rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2024-07-28
Started: 2022-05-24

Parallel Processing

Rendered fromparallel_processing.rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2022-05-27
Started: 2022-05-24

Sample datasets

Rendered fromsample_datasets.rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2022-10-19
Started: 2022-10-19

Readme and manuals

Help Manual

Help pageTopics
An R package for estimating the probability of informed tradingPINstimation-package
Estimation of adjusted PIN modeladjpin
Example of quarterly datadailytrades
List of dataset objectsdata.series-class show,data.series-method
Simulated data objectdataset-class show,dataset-method
Layer detection in trade-datadetecting-layers detectlayers_e detectlayers_ecm detectlayers_eg
AdjPIN estimation resultsestimate.adjpin-class show,estimate.adjpin-method
MPIN estimation resultsestimate.mpin-class show,estimate.mpin-method
MPIN estimation results (ECM)estimate.mpin.ecm-class getSummary getSummary,estimate.mpin.ecm-method selectModel selectModel,estimate.mpin.ecm-method show,estimate.mpin.ecm-method
PIN estimation resultsestimate.pin-class show,estimate.pin-method
VPIN estimation resultsestimate.vpin-class show,estimate.vpin-method
Factorizations of the different PIN likelihood functionsfactorizations fact_adjpin fact_mpin fact_pin_e fact_pin_eho fact_pin_lk
Simulation of AdjPIN model data.generatedata_adjpin
Simulation of MPIN model datageneratedata_mpin
Posterior probabilities for PIN and MPIN estimatesget_posteriors
High-frequency trade-datahfdata
AdjPIN initial parameter sets of Ersan & Ghachem (2022b)initials_adjpin
AdjPIN initial parameter sets of Cheng and Lai (2021)initials_adjpin_cl
AdjPIN random initial setsinitials_adjpin_rnd
MPIN initial parameter sets of Ersan (2016)initials_mpin
Initial parameter sets of Ersan & Alici (2016)initials_pin_ea
Initial parameter set of Gan et al.(2015)initials_pin_gwj
Initial parameter sets of Yan and Zhang (2012)initials_pin_yz
MPIN model estimation via an ECM algorithmmpin_ecm
MPIN model estimation via standard ML methodsmpin_ml
PIN estimation - custom initial parameter setspin
PIN estimation - Bayesian approachpin_bayes
PIN estimation - initial parameter sets of Ersan & Alici (2016)pin_ea
PIN estimation - initial parameter set of Gan et al. (2015)pin_gwj
PIN estimation - initial parameter sets of Yan & Zhang (2012)pin_yz
Package-wide number of digitsset_display_digits
Classification and aggregation of high-frequency dataaggregate_trades classify_trades trade_classification
Estimation of Volume-Synchronized PIN modelvpin