{
  "_id": "6a1f2016b401979e734202c3",
  "Package": "PINstimation",
  "Type": "Package",
  "Version": "0.2.0",
  "Date": "2025-12-16",
  "Title": "Estimation of the Probability of Informed Trading",
  "Authors@R": "c(\nperson(\"Montasser\", \"Ghachem\",\nemail = \"montasser.ghachem@pinstimation.com\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(\nORCID = \"0000-0001-6991-3316\"\n)\n),\nperson(\"Oguz\", \"Ersan\",\nemail = \"oguz.ersan@pinstimation.com\",\nrole = \"aut\",\ncomment = c(\nORCID = \"0000-0003-3135-5317\"\n)\n),\nperson(\"Alexandre\", \"Borentain\",\nemail = \"alexandre.borentain@pinstimation.com\",\nrole = \"ctb\",\n)\n)",
  "Maintainer": "Montasser Ghachem <montasser.ghachem@pinstimation.com>",
  "Description": "A comprehensive bundle of utilities for the estimation of\nprobability of informed trading models: original PIN in Easley\nand O'Hara (1992) and Easley et al. (1996); Multilayer PIN\n(MPIN) in Ersan (2016); Adjusted PIN (AdjPIN) in Duarte and\nYoung (2009); and volume-synchronized PIN (VPIN) in Easley et\nal. (2011, 2012). Implementations of various estimation methods\nsuggested in the literature are included. Additional compelling\nfeatures comprise posterior probabilities, an implementation of\nan expectation-maximization (EM) algorithm, and PIN\ndecomposition into layers, and into bad/good components.\nVersatile data simulation tools, and trade classification\nalgorithms are among the supplementary utilities. The package\nprovides fast, compact, and precise utilities to tackle the\nsophisticated, error-prone, and time-consuming estimation\nprocedure of informed trading, and this solely using the raw\ntrade-level data.",
  "URL": "https://www.pinstimation.com,\nhttps://github.com/monty-se/PINstimation",
  "BugReports": "https://github.com/monty-se/PINstimation/issues",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "RoxygenNote": "7.3.2",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "RdMacros": "Rdpack",
  "Language": "en-US",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://monty-se.r-universe.dev",
  "Date/Publication": "2025-12-17 17:37:19 UTC",
  "RemoteUrl": "https://github.com/monty-se/pinstimation",
  "RemoteRef": "HEAD",
  "RemoteSha": "ac6a46340d796292c6dfe75789a7656412298dc0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 07:57:12 UTC",
    "User": "root"
  },
  "Author": "Montasser Ghachem [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-6991-3316>),\nOguz Ersan [aut] (ORCID: <https://orcid.org/0000-0003-3135-5317>),\nAlexandre Borentain [ctb]",
  "MD5sum": "fa897426985a3136e3666c304cbcf73b",
  "_user": "monty-se",
  "_type": "src",
  "_file": "PINstimation_0.2.0.tar.gz",
  "_fileid": "4fe6a5fa0c01d0d620a4ef83fbc50de7727c560a4209096fc43df90f33dea860",
  "_filesize": 2138125,
  "_sha256": "4fe6a5fa0c01d0d620a4ef83fbc50de7727c560a4209096fc43df90f33dea860",
  "_created": "2026-05-16T07:57:12.000Z",
  "_published": "2026-06-02T18:25:26.527Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79142742300,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031785358"
    },
    {
      "job": 79142742678,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031785205"
    },
    {
      "job": 79142742531,
      "time": 264,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031790359"
    },
    {
      "job": 79142742717,
      "time": 171,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031782666"
    },
    {
      "job": 79142741653,
      "time": 339,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031768594"
    },
    {
      "job": 79142741416,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366389407"
    },
    {
      "job": 79142742462,
      "time": 129,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031781155"
    },
    {
      "job": 79142742616,
      "time": 165,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031784389"
    },
    {
      "job": 79142742248,
      "time": 137,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031781880"
    }
  ],
  "_buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/monty-se/pinstimation",
  "_commit": {
    "id": "ac6a46340d796292c6dfe75789a7656412298dc0",
    "author": "Montasser Ghachem <37964692+monty-se@users.noreply.github.com>",
    "committer": "Montasser Ghachem <37964692+monty-se@users.noreply.github.com>",
    "message": "docs(cran): address CRAN notes and reduce check time\n\n- README: replace GNU GPLv3 link with CRAN GPL-3 license page.\n- DESCRIPTION: simplify Authors@R (remove bios, keep ORCID) to avoid Author/Authors@R mismatch NOTE.\n- Examples: mark long-running help-page examples as not run by default and/or reduce example workload (`trade_classification`, `vpin_measures`) to improve CRAN check time.\n- Vignettes: reduce computation to speed up vignette rebuild time (~5.5 minutes).\n- CRAN-comments.md: update notes explaining remaining NOTEs, including spell-check flags for proper names and technical terms.\n",
    "time": 1765993039
  },
  "_maintainer": {
    "name": "Montasser Ghachem",
    "email": "montasser.ghachem@pinstimation.com",
    "login": "monty-se",
    "uuid": 37964692,
    "orcid": "0000-0001-6991-3316"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "skellam",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "furrr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "fansi",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    }
  ],
  "_owner": "monty-se",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-51",
      "n": 24
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2025-12-17"
    }
  ],
  "_topics": [
    "clustering-analysis",
    "expectation-maximisation-algorithm",
    "hierarchical-clustering",
    "information-asymmetry",
    "market-microstructure",
    "maximum-likelihood-estimation",
    "mixture-distributions",
    "poisson-distribution"
  ],
  "_stars": 41,
  "_contributors": [
    {
      "user": "monty-se",
      "count": 145,
      "uuid": 37964692
    }
  ],
  "_userbio": {
    "uuid": 37964692,
    "type": "user",
    "name": "Montasser Ghachem",
    "description": "Researcher in Economics, and Finance, enthusiast for statistics, programming, and writing. Based in Sweden."
  },
  "_downloads": {
    "count": 248,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PINstimation"
  },
  "_devurl": "https://github.com/monty-se/pinstimation",
  "_pkgdown": "https://www.pinstimation.com",
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PINstimation.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/monty-se/pinstimation",
  "_realowner": "monty-se",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-05-27"
    },
    {
      "version": "0.1.1",
      "date": "2022-10-19"
    },
    {
      "version": "0.1.2",
      "date": "2023-03-21"
    },
    {
      "version": "0.2.0",
      "date": "2025-12-17"
    }
  ],
  "_exports": [
    "adjpin",
    "aggregate_trades",
    "classify_trades",
    "detectlayers_e",
    "detectlayers_ecm",
    "detectlayers_eg",
    "fact_adjpin",
    "fact_mpin",
    "fact_pin_e",
    "fact_pin_eho",
    "fact_pin_lk",
    "generatedata_adjpin",
    "generatedata_mpin",
    "get_posteriors",
    "getSummary",
    "initials_adjpin",
    "initials_adjpin_cl",
    "initials_adjpin_rnd",
    "initials_mpin",
    "initials_pin_ea",
    "initials_pin_gwj",
    "initials_pin_yz",
    "ivpin",
    "mpin_ecm",
    "mpin_ml",
    "pin",
    "pin_bayes",
    "pin_ea",
    "pin_gwj",
    "pin_yz",
    "selectModel",
    "set_display_digits",
    "show",
    "vpin"
  ],
  "_datasets": [
    {
      "name": "dailytrades",
      "title": "Example of quarterly data",
      "object": "dailytrades",
      "class": [
        "data.frame"
      ],
      "fields": [
        "B",
        "S"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "hfdata",
      "title": "High-frequency trade-data",
      "object": "hfdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "timestamp",
        "price",
        "volume",
        "bid",
        "ask"
      ],
      "rows": 100000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adjpin",
      "title": "Estimation of adjusted PIN model",
      "topics": [
        "adjpin"
      ]
    },
    {
      "page": "dailytrades",
      "title": "Example of quarterly data",
      "topics": [
        "dailytrades"
      ]
    },
    {
      "page": "data.series-class",
      "title": "List of dataset objects",
      "topics": [
        "data.series-class",
        "show,data.series-method"
      ]
    },
    {
      "page": "dataset-class",
      "title": "Simulated data object",
      "topics": [
        "dataset-class",
        "show,dataset-method"
      ]
    },
    {
      "page": "detecting-layers",
      "title": "Layer detection in trade-data",
      "topics": [
        "detecting-layers",
        "detectlayers_e",
        "detectlayers_ecm",
        "detectlayers_eg"
      ]
    },
    {
      "page": "estimate.adjpin-class",
      "title": "AdjPIN estimation results",
      "topics": [
        "estimate.adjpin-class",
        "show,estimate.adjpin-method"
      ]
    },
    {
      "page": "estimate.mpin-class",
      "title": "MPIN estimation results",
      "topics": [
        "estimate.mpin-class",
        "show,estimate.mpin-method"
      ]
    },
    {
      "page": "estimate.mpin.ecm-class",
      "title": "MPIN estimation results (ECM)",
      "topics": [
        "estimate.mpin.ecm-class",
        "getSummary",
        "getSummary,estimate.mpin.ecm-method",
        "selectModel",
        "selectModel,estimate.mpin.ecm-method",
        "show,estimate.mpin.ecm-method"
      ]
    },
    {
      "page": "estimate.pin-class",
      "title": "PIN estimation results",
      "topics": [
        "estimate.pin-class",
        "show,estimate.pin-method"
      ]
    },
    {
      "page": "estimate.vpin-class",
      "title": "VPIN estimation results",
      "topics": [
        "estimate.vpin-class",
        "show,estimate.vpin-method"
      ]
    },
    {
      "page": "factorizations",
      "title": "Factorizations of the different PIN likelihood functions",
      "topics": [
        "factorizations",
        "fact_adjpin",
        "fact_mpin",
        "fact_pin_e",
        "fact_pin_eho",
        "fact_pin_lk"
      ]
    },
    {
      "page": "generatedata_adjpin",
      "title": "Simulation of AdjPIN model data.",
      "topics": [
        "generatedata_adjpin"
      ]
    },
    {
      "page": "generatedata_mpin",
      "title": "Simulation of MPIN model data",
      "topics": [
        "generatedata_mpin"
      ]
    },
    {
      "page": "get_posteriors",
      "title": "Posterior probabilities for PIN and MPIN estimates",
      "topics": [
        "get_posteriors"
      ]
    },
    {
      "page": "hfdata",
      "title": "High-frequency trade-data",
      "topics": [
        "hfdata"
      ]
    },
    {
      "page": "initials_adjpin",
      "title": "AdjPIN initial parameter sets of Ersan & Ghachem (2022b)",
      "topics": [
        "initials_adjpin"
      ]
    },
    {
      "page": "initials_adjpin_cl",
      "title": "AdjPIN initial parameter sets of Cheng and Lai (2021)",
      "topics": [
        "initials_adjpin_cl"
      ]
    },
    {
      "page": "initials_adjpin_rnd",
      "title": "AdjPIN random initial sets",
      "topics": [
        "initials_adjpin_rnd"
      ]
    },
    {
      "page": "initials_mpin",
      "title": "MPIN initial parameter sets of Ersan (2016)",
      "topics": [
        "initials_mpin"
      ]
    },
    {
      "page": "initials_pin_ea",
      "title": "Initial parameter sets of Ersan & Alici (2016)",
      "topics": [
        "initials_pin_ea"
      ]
    },
    {
      "page": "initials_pin_gwj",
      "title": "Initial parameter set of Gan et al.(2015)",
      "topics": [
        "initials_pin_gwj"
      ]
    },
    {
      "page": "initials_pin_yz",
      "title": "Initial parameter sets of Yan and Zhang (2012)",
      "topics": [
        "initials_pin_yz"
      ]
    },
    {
      "page": "mpin_ecm",
      "title": "MPIN model estimation via an ECM algorithm",
      "topics": [
        "mpin_ecm"
      ]
    },
    {
      "page": "mpin_ml",
      "title": "MPIN model estimation via standard ML methods",
      "topics": [
        "mpin_ml"
      ]
    },
    {
      "page": "pin",
      "title": "PIN estimation - custom initial parameter sets",
      "topics": [
        "pin"
      ]
    },
    {
      "page": "pin_bayes",
      "title": "PIN estimation - Bayesian approach",
      "topics": [
        "pin_bayes"
      ]
    },
    {
      "page": "pin_ea",
      "title": "PIN estimation - initial parameter sets of Ersan & Alici (2016)",
      "topics": [
        "pin_ea"
      ]
    },
    {
      "page": "pin_gwj",
      "title": "PIN estimation - initial parameter set of Gan et al. (2015)",
      "topics": [
        "pin_gwj"
      ]
    },
    {
      "page": "pin_yz",
      "title": "PIN estimation - initial parameter sets of Yan & Zhang (2012)",
      "topics": [
        "pin_yz"
      ]
    },
    {
      "page": "set_display_digits",
      "title": "Package-wide number of digits",
      "topics": [
        "set_display_digits"
      ]
    },
    {
      "page": "trade_classification",
      "title": "Classification and aggregation of high-frequency data",
      "topics": [
        "aggregate_trades",
        "classify_trades",
        "trade_classification"
      ]
    },
    {
      "page": "vpin_measures",
      "title": "Estimation of Volume-Synchronized PIN model (vpin) and the improved volume-synchronized PIN model (ivpin)",
      "topics": [
        "ivpin",
        "vpin",
        "vpin_measures"
      ]
    }
  ],
  "_readme": "https://github.com/monty-se/pinstimation/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "digest",
    "dplyr",
    "evaluate",
    "fastmap",
    "fontawesome",
    "fs",
    "furrr",
    "future",
    "generics",
    "globals",
    "glue",
    "highr",
    "htmltools",
    "jquerylib",
    "jsonlite",
    "knitr",
    "lattice",
    "lifecycle",
    "listenv",
    "magrittr",
    "memoise",
    "mime",
    "nloptr",
    "parallelly",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rappdirs",
    "rbibutils",
    "Rdpack",
    "rlang",
    "rmarkdown",
    "sass",
    "skellam",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "PINstimation.rmd",
      "filename": "PINstimation.html",
      "title": "Get started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Note to frequent users",
        "Usage examples",
        "Example 1: Estimate the PIN model",
        "Example 2: Estimate the Multilayer PIN model",
        "Example 3: Estimate the Adjusted PIN model",
        "Example 4: Estimate the Volume-adjusted PIN model",
        "Example 5: Estimate the AdjPIN model using aggregated high-frequency data",
        "Getting help"
      ],
      "created": "2022-05-24 13:49:55",
      "modified": "2025-12-17 17:37:19",
      "commits": 13
    },
    {
      "source": "parallel_processing.rmd",
      "filename": "parallel_processing.html",
      "title": "Parallel Processing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Parallel processing with PINstimation",
        "Option 1: Number of cores used",
        "Option 2: Threshold of initial parameter sets",
        "Illustrative Example",
        "Sequential processing",
        "Parallel processing | number of sets below the threshold",
        "Parallel processing | number of sets above the threshold",
        "Getting help"
      ],
      "created": "2022-05-24 13:49:55",
      "modified": "2025-12-17 17:37:19",
      "commits": 9
    },
    {
      "source": "sample_datasets.rmd",
      "filename": "sample_datasets.html",
      "title": "Sample datasets",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Sample datasets for the PIN model",
        "Sample datasets for the MPIN model",
        "Sample datasets for the ADJPIN model",
        "Getting help"
      ],
      "created": "2022-10-19 15:41:17",
      "modified": "2025-12-17 17:37:19",
      "commits": 2
    }
  ],
  "_score": 6.044147620878722,
  "_indexed": true,
  "_nocasepkg": "pinstimation",
  "_universes": [
    "monty-se"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-16T07:59:37.000Z",
      "distro": "noble",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "196067fab4c99471c4bb3148d2ddfaec79ecc8cea05065c5b455cc9a1c5c43c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-16T07:59:35.000Z",
      "distro": "noble",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "2666843ded6918e5f651cf566c9c3c4094e36d65ac2a8957e781c9567a59ca5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-16T08:00:18.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "c15294d9b1fd106a9815689628e7c35886280b6308ce55254ba0c8d54021f62c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-16T07:59:32.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "1f421dceb8cc40a6413bbcd4fcda019cb3ad4f9e00e9579b2c2d3bc464f092c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-16T07:58:40.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "91acee33f897d355f12f7294df68b390ec3efd310e680536d12f069aaea7337d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-16T07:59:26.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "e6634e175be89fb07b2c5f06a0fbee77d867307a6bb9bacaa7aadf5d12868633",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-16T07:58:47.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "142ca814394ad88c9fcaffe831076d053bf5b7b2ed73826d3414b7f240e477e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-06-02T18:25:06.000Z",
      "commit": "ac6a46340d796292c6dfe75789a7656412298dc0",
      "fileid": "d85a308d903debd3a91d303099a8627336bd68c3de3cf0f90f275fe1b3f37501",
      "status": "success",
      "buildurl": "https://github.com/r-universe/monty-se/actions/runs/25956621043"
    }
  ]
}