{
  "_id": "6a21479ecd65a98ecbd2bb57",
  "Package": "RSD",
  "Type": "Package",
  "Title": "Compares Random Distributions using Stochastic Dominance",
  "Version": "0.3.0",
  "Authors@R": "c(person(given = \"Shayan\",\nfamily = \"Tohidi\",\nrole = c(\"aut\", \"cre\"),\nemail = \"shayant@iastate.edu\",\ncomment = c(ORCID = \"0000-0002-6386-889X\")),\nperson(given = \"Sigurdur\",\nfamily = \"Olafsson\",\nrole = \"aut\",\nemail = \"olafsson@iastate.edu\",\ncomment = c(ORCID = \"0000-0002-0088-6898\")))",
  "Maintainer": "Shayan Tohidi <shayant@iastate.edu>",
  "Description": "The Stochastic Dominance (SD) is the classical way of\ncomparing two random prospects, using their distribution\nfunctions. Almost Stochastic Dominance (ASD) has also been\ndeveloped to cover the SD failures due to the extreme utility\nfunctions. This package focuses on classical and heuristic\nmethods for testing the first and second SD and ASD methods\ngiven the probability mass function (PMF) of the random\nprospects. The goal is to apply these methods easily,\nefficiently, and effectively on real-world datasets. For more\ndetails see Hanoch and Levy (1969) <doi:10.2307/2296431>,\nLeshno and Levy (2002) <doi:10.1287/mnsc.48.8.1074.169>, and\nTzeng et al. (2012) <doi:10.1287/mnsc.1120.1616>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://github.com/ShayanTohidi/RSD",
  "BugReports": "https://github.com/ShayanTohidi/RSD/issues",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://shayantohidi.r-universe.dev",
  "Date/Publication": "2025-08-08 18:55:42 UTC",
  "RemoteUrl": "https://github.com/shayantohidi/rsd",
  "RemoteRef": "HEAD",
  "RemoteSha": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 09:34:48 UTC",
    "User": "root"
  },
  "Author": "Shayan Tohidi [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6386-889X>),\nSigurdur Olafsson [aut] (ORCID:\n<https://orcid.org/0000-0002-0088-6898>)",
  "MD5sum": "74e9e0aebd973cca954356a70f4435a9",
  "_user": "shayantohidi",
  "_type": "src",
  "_file": "RSD_0.3.0.tar.gz",
  "_fileid": "7962c5e1b18f8b7679e4423a0fa8506978920b95769331514892be56be1563ec",
  "_filesize": 165929,
  "_sha256": "7962c5e1b18f8b7679e4423a0fa8506978920b95769331514892be56be1563ec",
  "_created": "2026-06-04T09:34:48.000Z",
  "_published": "2026-06-04T09:38:38.419Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79490803427,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7408074269"
    },
    {
      "job": 79490803421,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408068779"
    },
    {
      "job": 79490803389,
      "time": 188,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7408079009"
    },
    {
      "job": 79490803448,
      "time": 160,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408071136"
    },
    {
      "job": 79490209310,
      "time": 212,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408023061"
    },
    {
      "job": 79490803519,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408060086"
    },
    {
      "job": 79490803563,
      "time": 90,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7408055657"
    },
    {
      "job": 79490803585,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7408053450"
    },
    {
      "job": 79490803485,
      "time": 100,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408059207"
    }
  ],
  "_buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/shayantohidi/rsd",
  "_commit": {
    "id": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
    "author": "Shayan Tohidi <shayan.stm48@gmail.com>",
    "committer": "Shayan Tohidi <shayan.stm48@gmail.com>",
    "message": "x\n",
    "time": 1754679342
  },
  "_maintainer": {
    "name": "Shayan Tohidi",
    "email": "shayant@iastate.edu",
    "login": "shayantohidi",
    "description": "",
    "uuid": 99691838,
    "orcid": "0000-0002-6386-889X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    }
  ],
  "_owner": "shayantohidi",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-23",
      "n": 181
    },
    {
      "week": "2025-24",
      "n": 51
    },
    {
      "week": "2025-25",
      "n": 25
    },
    {
      "week": "2025-30",
      "n": 88
    },
    {
      "week": "2025-32",
      "n": 29
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2025-06-21"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "shayantohidi",
      "count": 414,
      "uuid": 99691838
    }
  ],
  "_userbio": {
    "uuid": 99691838,
    "type": "user",
    "name": "Shayan Tohidi"
  },
  "_downloads": {
    "count": 124,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RSD"
  },
  "_devurl": "https://github.com/shayantohidi/rsd",
  "_searchresults": 2,
  "_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/readme.html",
    "extra/readme.md",
    "extra/RSD.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/shayantohidi/rsd",
  "_realowner": "shayantohidi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-06-17"
    },
    {
      "version": "0.2.0",
      "date": "2025-06-21"
    }
  ],
  "_exports": [
    "afsd.test",
    "assd.test",
    "compare.all",
    "compare.paired.distributions",
    "createStochasticDominance",
    "fsd.plot",
    "fsd.test",
    "screen.by.asd",
    "screen.by.sd",
    "ssd.plot",
    "ssd.test"
  ],
  "_datasets": [
    {
      "name": "data_ex",
      "title": "The example dataset",
      "object": "data_ex",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "gen",
        "env",
        "yield"
      ],
      "rows": 377,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "afsd.test",
      "title": "Compares prospects based on AFSD",
      "topics": [
        "afsd.test"
      ]
    },
    {
      "page": "area.below.ssd.calc",
      "title": "Calculates area below SSD function",
      "topics": [
        "area.below.ssd.calc"
      ]
    },
    {
      "page": "area.btwn.cdfs.calc",
      "title": "Calculates area between CDFs",
      "topics": [
        "area.btwn.cdfs.calc"
      ]
    },
    {
      "page": "area.btwn.ssd.calc",
      "title": "Calculates area between SSD functions",
      "topics": [
        "area.btwn.ssd.calc"
      ]
    },
    {
      "page": "asd.screen",
      "title": "Create the inefficient set by an ASD rule",
      "topics": [
        "asd.screen"
      ]
    },
    {
      "page": "assd.ll.test",
      "title": "Compares random prospects by ASSD-LL",
      "topics": [
        "assd.ll.test"
      ]
    },
    {
      "page": "assd.test",
      "title": "Compares prospects based on ASSD methods",
      "topics": [
        "assd.test"
      ]
    },
    {
      "page": "assd.ths.test",
      "title": "Compares random prospects by ASSD-THS",
      "topics": [
        "assd.ths.test"
      ]
    },
    {
      "page": "calc.area.below.line",
      "title": "Calculates the area between x-axis and a straight line",
      "topics": [
        "calc.area.below.line"
      ]
    },
    {
      "page": "calc.intersection",
      "title": "Calculates the intersection point of two lines.",
      "topics": [
        "calc.intersection"
      ]
    },
    {
      "page": "compare.all",
      "title": "Comparing all pairs by all rules, and finding the sets",
      "topics": [
        "compare.all"
      ]
    },
    {
      "page": "compare.paired.distributions",
      "title": "Creating paired distributions and execute all SD and ASD rules on them",
      "topics": [
        "compare.paired.distributions"
      ]
    },
    {
      "page": "comparison",
      "title": "Comparing two numeric vectors",
      "topics": [
        "comparison"
      ]
    },
    {
      "page": "create.dataframe",
      "title": "create a data frame from input parameters",
      "topics": [
        "create.dataframe"
      ]
    },
    {
      "page": "create.paired.distributions",
      "title": "Creating paired distributions",
      "topics": [
        "create.paired.distributions"
      ]
    },
    {
      "page": "createStochasticDominance",
      "title": "Constructor of StochasticDominance Class",
      "topics": [
        "createStochasticDominance"
      ]
    },
    {
      "page": "data_ex",
      "title": "The example dataset",
      "topics": [
        "data_ex"
      ]
    },
    {
      "page": "expected.values",
      "title": "Calculating Expected value",
      "topics": [
        "expected.values"
      ]
    },
    {
      "page": "fsd.plot",
      "title": "Drawing the CDFs",
      "topics": [
        "fsd.plot"
      ]
    },
    {
      "page": "fsd.test",
      "title": "Compares random prospects by FSD",
      "topics": [
        "fsd.test"
      ]
    },
    {
      "page": "has.intersection",
      "title": "If two lines have intersection or no.",
      "topics": [
        "has.intersection"
      ]
    },
    {
      "page": "modif.outcome.ssd.calc",
      "title": "Modify outcome and SSD vectors",
      "topics": [
        "modif.outcome.ssd.calc"
      ]
    },
    {
      "page": "pair.distributions",
      "title": "Paring all the distributions",
      "topics": [
        "pair.distributions"
      ]
    },
    {
      "page": "pair.variables",
      "title": "Paring all the variables",
      "topics": [
        "pair.variables"
      ]
    },
    {
      "page": "pos.neg.area.assd.ll",
      "title": "Calculates positive and negative area between CDFs for ASSD-LL",
      "topics": [
        "pos.neg.area.assd.ll"
      ]
    },
    {
      "page": "screen",
      "title": "A wrapper for computing inefficient and efficient sets",
      "topics": [
        "screen"
      ]
    },
    {
      "page": "screen.by.asd",
      "title": "Screening by all ASD rules",
      "topics": [
        "screen.by.asd"
      ]
    },
    {
      "page": "screen.by.sd",
      "title": "Screening by all SD rules",
      "topics": [
        "screen.by.sd"
      ]
    },
    {
      "page": "sd.asd.test",
      "title": "Performing all SD and ASD methods on a pair",
      "topics": [
        "sd.asd.test"
      ]
    },
    {
      "page": "sd.asd.test.all",
      "title": "Performing SD and ASD tests on distribution pairs",
      "topics": [
        "sd.asd.test.all"
      ]
    },
    {
      "page": "sd.screen",
      "title": "Create the inefficient set by an SD rule",
      "topics": [
        "sd.screen"
      ]
    },
    {
      "page": "sorting.variables",
      "title": "Sorting all variables based on their outcomes",
      "topics": [
        "sorting.variables"
      ]
    },
    {
      "page": "ssd.calc",
      "title": "Calculates the SSD values for a prospect.",
      "topics": [
        "ssd.calc"
      ]
    },
    {
      "page": "ssd.plot",
      "title": "Drawing the SSD",
      "topics": [
        "ssd.plot"
      ]
    },
    {
      "page": "ssd.test",
      "title": "Compares random prospects by SSD",
      "topics": [
        "ssd.test"
      ]
    },
    {
      "page": "StochasticDominance-class",
      "title": "StochasticDominance Class",
      "topics": [
        "StochasticDominance-class"
      ]
    }
  ],
  "_readme": "https://github.com/shayantohidi/rsd/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 3.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "rsd",
  "_universes": [
    "shayantohidi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-04T09:37:00.000Z",
      "distro": "noble",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "1ad2c4df519b84cb126ab549b57c9cf835a30f1e4b5de0a6100f8bc429b5ee86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-04T09:36:48.000Z",
      "distro": "noble",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "33c397f97b6e1f20bc30e27fc92e2ac57a06d8897f0542856c58dc1b970363f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-04T09:37:19.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "261de3d01bf5a6cd3b3829b4cade134d86e554e2d3b64e7cd1ee9a46c9f1fc37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-04T09:36:59.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "6c86477372c9077fa89ed118ef22cf6adf66b2f2dc323fbdd2c18ab6d3040743",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-06-04T09:36:51.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "f5e862d04a6e006e2466a4fb2409adf94b8dc97fe8b6ea41b7324ed99e0e4c52",
      "status": "success",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-04T09:36:05.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "5fc06dff348a078151a7950260dc8374cd6cac4f5ef081fb1059631fa056e5b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-04T09:35:59.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "b8f0d8cea9c2f601da6f345bae7c565ead4d90a16537ace42dc7e757c3c3da37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-04T09:36:14.000Z",
      "commit": "15980941b8a80d586db15e0e5fcd4c634e3bf9e9",
      "fileid": "c7c80fa11160b62abe7edc57a09d009f170aad1ee66befa94c7d1f36ded359e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shayantohidi/actions/runs/26943375697"
    }
  ]
}