{
  "_id": "6a1fd808b401979e73436c39",
  "Package": "cosa",
  "Type": "Package",
  "Title": "Bound Constrained Optimal Sample Size Allocation",
  "Version": "2.1.0",
  "Date": "2021-05-25",
  "Authors@R": "c(person(\"Metin\", family = \"Bulus\", role = c(\"aut\", \"cre\"), email = \"bulusmetin@gmail.com\"), person(\"Nianbo\", family = \"Dong\", role = c(\"aut\")))",
  "Description": "Implements bound constrained optimal sample size\nallocation (BCOSSA) framework described in Bulus & Dong (2021)\n<doi:10.1080/00220973.2019.1636197> for power analysis of\nmultilevel regression discontinuity designs (MRDDs) and\nmultilevel randomized trials (MRTs) with continuous outcomes.\nMinimum detectable effect size (MDES) and power computations\nfor MRDDs allow polynomial functional form specification for\nthe score variable (with or without interaction with the\ntreatment indicator) (Bulus, in press).",
  "VignetteBuilder": "knitr",
  "License": "GPL (>= 3)",
  "NeedsCompilation": "no",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://metinbulus.r-universe.dev",
  "Date/Publication": "2021-09-01 10:57:27 UTC",
  "RemoteUrl": "https://github.com/metinbulus/cosa",
  "RemoteRef": "HEAD",
  "RemoteSha": "ff7ccbf1962b0171515712a417ba838f33c5065c",
  "Packaged": {
    "Date": "2026-06-03 07:26:59 UTC",
    "User": "root"
  },
  "Author": "Metin Bulus [aut, cre],\nNianbo Dong [aut]",
  "Maintainer": "Metin Bulus <bulusmetin@gmail.com>",
  "MD5sum": "ea025abdc6ec24ffb7f0ec30cd6351a8",
  "_user": "metinbulus",
  "_type": "src",
  "_file": "cosa_2.1.0.tar.gz",
  "_fileid": "b6836f22005c662684494394113ffaddd947741ad425da9b50ac1187db8c2186",
  "_filesize": 422819,
  "_sha256": "b6836f22005c662684494394113ffaddd947741ad425da9b50ac1187db8c2186",
  "_created": "2026-06-03T07:26:59.000Z",
  "_published": "2026-06-03T07:30:16.147Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79243254152,
      "time": 144,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7378285778"
    },
    {
      "job": 79243254164,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378287844"
    },
    {
      "job": 79243254147,
      "time": 101,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7378278586"
    },
    {
      "job": 79243254149,
      "time": 122,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378287259"
    },
    {
      "job": 79242579109,
      "time": 277,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378242296"
    },
    {
      "job": 79243254175,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378271563"
    },
    {
      "job": 79243254236,
      "time": 112,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7378275742"
    },
    {
      "job": 79243254230,
      "time": 109,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7378274447"
    },
    {
      "job": 79243254213,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378275423"
    }
  ],
  "_buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/metinbulus/cosa",
  "_commit": {
    "id": "ff7ccbf1962b0171515712a417ba838f33c5065c",
    "author": "Metin Bulus <bulusmetin@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1630493847
  },
  "_maintainer": {
    "name": "Metin Bulus",
    "email": "bulusmetin@gmail.com",
    "login": "metinbulus",
    "description": "",
    "uuid": 13105122
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "nloptr",
      "version": ">= 1.0.4",
      "role": "Imports"
    },
    {
      "package": "msm",
      "version": ">= 1.6.7",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "metinbulus",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "metinbulus",
      "count": 17,
      "uuid": 13105122
    }
  ],
  "_userbio": {
    "uuid": 13105122,
    "type": "user",
    "name": "Metin Bulus"
  },
  "_downloads": {
    "count": 233,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cosa"
  },
  "_devurl": "https://github.com/metinbulus/cosa",
  "_searchresults": 15,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cosa.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/metinbulus/cosa",
  "_realowner": "metinbulus",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2018-02-06"
    },
    {
      "version": "1.1.0",
      "date": "2018-03-01"
    },
    {
      "version": "1.2.0",
      "date": "2018-04-04"
    },
    {
      "version": "1.2.1",
      "date": "2018-12-16"
    },
    {
      "version": "1.2.2",
      "date": "2019-05-09"
    },
    {
      "version": "2.0.0",
      "date": "2019-08-24"
    },
    {
      "version": "2.1.0",
      "date": "2021-11-20"
    }
  ],
  "_exports": [
    "cosa.bcrd3f2",
    "cosa.bcrd3r2",
    "cosa.bcrd4f3",
    "cosa.bcrd4r2",
    "cosa.bcrd4r3",
    "cosa.bird2",
    "cosa.bird2f1",
    "cosa.bird2r1",
    "cosa.bird3",
    "cosa.bird3r1",
    "cosa.bird4",
    "cosa.bird4r1",
    "cosa.crd2",
    "cosa.crd2r2",
    "cosa.crd3",
    "cosa.crd3r3",
    "cosa.crd4",
    "cosa.crd4r4",
    "emp.moment",
    "inspect.score",
    "mdes.bcrd3f2",
    "mdes.bcrd3r2",
    "mdes.bcrd4f3",
    "mdes.bcrd4r2",
    "mdes.bcrd4r3",
    "mdes.bird2",
    "mdes.bird2f1",
    "mdes.bird2r1",
    "mdes.bird3",
    "mdes.bird3r1",
    "mdes.bird4",
    "mdes.bird4r1",
    "mdes.crd2",
    "mdes.crd2r2",
    "mdes.crd3",
    "mdes.crd3r3",
    "mdes.crd4",
    "mdes.crd4r4",
    "mdes.ird",
    "mdes.ird1r1",
    "plot.cosa",
    "plot.mdes",
    "plot.power",
    "power.bcrd3f2",
    "power.bcrd3r2",
    "power.bcrd4f3",
    "power.bcrd4r2",
    "power.bcrd4r3",
    "power.bird2",
    "power.bird2f1",
    "power.bird2r1",
    "power.bird3",
    "power.bird3r1",
    "power.bird4",
    "power.bird4r1",
    "power.crd2",
    "power.crd2r2",
    "power.crd3",
    "power.crd3r3",
    "power.crd4",
    "power.crd4r4",
    "power.ird",
    "power.ird1r1",
    "tnorm.moment",
    "unif.moment",
    "vectorize.cosa"
  ],
  "_help": [
    {
      "page": "cosa-package",
      "title": "Bound Constrained Optimal Design of MRDDs and MRTs",
      "topics": [
        "cosa-package"
      ]
    },
    {
      "page": "bcrd3r2",
      "title": "Blocked (Random) Cluster-level Regression Discontinuity (Three-level Design, Discontinuity at Level 2)",
      "topics": [
        "bcrd3r2",
        "cosa.bcrd3r2",
        "mdes.bcrd3r2",
        "power.bcrd3r2"
      ]
    },
    {
      "page": "bcrd4r2",
      "title": "Blocked (Random) Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 2)",
      "topics": [
        "bcrd4r2",
        "cosa.bcrd4r2",
        "mdes.bcrd4r2",
        "power.bcrd4r2"
      ]
    },
    {
      "page": "bcrd4r3",
      "title": "Blocked (Random) Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 3)",
      "topics": [
        "bcrd4r3",
        "cosa.bcrd4r3",
        "mdes.bcrd4r3",
        "power.bcrd4r3"
      ]
    },
    {
      "page": "bird2r1",
      "title": "Blocked (Random) Individual-level Regression Discontinuity (Two-level Design, Discontinuity at Level 1)",
      "topics": [
        "bird2",
        "bird2r1",
        "cosa.bird2",
        "cosa.bird2r1",
        "mdes.bird2",
        "mdes.bird2r1",
        "power.bird2",
        "power.bird2r1"
      ]
    },
    {
      "page": "bird3r1",
      "title": "Blocked (Random) Individual-level Regression Discontinuity (Three-level Design, Discontinuity at Level 1)",
      "topics": [
        "bird3",
        "bird3r1",
        "cosa.bird3",
        "cosa.bird3r1",
        "mdes.bird3",
        "mdes.bird3r1",
        "power.bird3",
        "power.bird3r1"
      ]
    },
    {
      "page": "bird4r1",
      "title": "Blocked (Random) Individual-level Regression Discontinuity (Four-level Design, Discontinuity at Level 1)",
      "topics": [
        "bird4",
        "bird4r1",
        "cosa.bird4",
        "cosa.bird4r1",
        "mdes.bird4",
        "mdes.bird4r1",
        "power.bird4",
        "power.bird4r1"
      ]
    },
    {
      "page": "cosa-deprecated",
      "title": "Deprecated and Defunct functions in 'cosa'",
      "topics": [
        "cosa-deprecated"
      ]
    },
    {
      "page": "crd2r2",
      "title": "Cluster-level Regression Discontinuity (Two-level Design, Discontinuity at Level 2, w/ or w/o Strata or Fixed Blocks)",
      "topics": [
        "bcrd3f2",
        "cosa.bcrd3f2",
        "cosa.crd2",
        "cosa.crd2r2",
        "crd2",
        "crd2r2",
        "mdes.bcrd3f2",
        "mdes.crd2",
        "mdes.crd2r2",
        "power.bcrd3f2",
        "power.crd2",
        "power.crd2r2"
      ]
    },
    {
      "page": "crd3r3",
      "title": "Cluster-level Regression Discontinuity (Three-level Design, Discontinuity at Level 3, w/ or w/o Strata or Fixed Blocks)",
      "topics": [
        "bcrd4f3",
        "cosa.bcrd4f3",
        "cosa.crd3",
        "cosa.crd3r3",
        "crd3",
        "crd3r3",
        "mdes.bcrd4f3",
        "mdes.crd3",
        "mdes.crd3r3",
        "power.bcrd4f3",
        "power.crd3",
        "power.crd3r3"
      ]
    },
    {
      "page": "crd4r4",
      "title": "Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 4)",
      "topics": [
        "cosa.crd4",
        "cosa.crd4r4",
        "crd4",
        "crd4r4",
        "mdes.crd4",
        "mdes.crd4r4",
        "power.crd4",
        "power.crd4r4"
      ]
    },
    {
      "page": "inspect",
      "title": "Computes Regression Discontinuity Design Effects",
      "topics": [
        "inspect.score"
      ]
    },
    {
      "page": "ird1r1",
      "title": "Simple Individual-level Regression Discontinuity (w/ or w/o Strata or Fixed Blocks)",
      "topics": [
        "bird2f1",
        "cosa.bird2f1",
        "ird",
        "ird1r1",
        "mdes.bird2f1",
        "mdes.ird",
        "mdes.ird1r1",
        "power.bird2f1",
        "power.ird",
        "power.ird1r1"
      ]
    },
    {
      "page": "moments",
      "title": "Moments",
      "topics": [
        "emp.moment",
        "tnorm.moment",
        "unif.moment"
      ]
    },
    {
      "page": "plots",
      "title": "Power and MDES Curves",
      "topics": [
        "plot.cosa",
        "plot.mdes",
        "plot.power"
      ]
    },
    {
      "page": "vectorize",
      "title": "Vectorizes BCOSSA Solutions",
      "topics": [
        "vectorize.cosa"
      ]
    }
  ],
  "_readme": "https://github.com/metinbulus/cosa/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "expm",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "msm",
    "mvtnorm",
    "nloptr",
    "pillar",
    "pkgconfig",
    "rlang",
    "survival",
    "tibble",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "cosa_tutorial.Rmd",
      "filename": "cosa_tutorial.html",
      "title": " Bound Constrained Optimal Design of Multilevel Regression Discontinuity Designs and Randomized Controlled Trials ",
      "author": "Metin Bulus & Nianbo Dong",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Primary Constraint on the Total Cost",
        "Primary Constraint on the Effect Size",
        "Primary Constraint on the Power Rate"
      ],
      "created": "2019-10-27 14:00:19",
      "modified": "2020-04-04 22:02:13",
      "commits": 3
    }
  ],
  "_score": 3.8750612633917,
  "_indexed": true,
  "_nocasepkg": "cosa",
  "_universes": [
    "metinbulus"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-03T07:29:08.000Z",
      "distro": "noble",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "45d96574a44247e8cd67ebee7db6bd93835bcbce92b3b4e4a43b18a1edf602d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-03T07:29:12.000Z",
      "distro": "noble",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "dc94360154192c5aeeda34d50d09719920e0572b4cf12270b7cbdb3c06c0f1ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-06-03T07:28:56.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "d752c96eab339f66138dd7cb94894474f943dfbff7e6abb178c26a413753b441",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-06-03T07:29:21.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "1b39ba4bae93bb7b0c9ecf1972baec04f4c0c13755556ac09b9570bebece107e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-06-03T07:29:02.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "1f0f84898a3682a526ed8b1354cae57d58340d231e7748628a568691bd542228",
      "status": "success",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-03T07:28:26.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "bcc6b7b7be4ac8386e9feb991af96cd2445d168dd5ef07263daed49a65f44423",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-03T07:28:25.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "1262e7d5c160875edfa5c199ea9e2eef92f2f037703d2eedb7c10d5248e7de16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-03T07:28:21.000Z",
      "commit": "ff7ccbf1962b0171515712a417ba838f33c5065c",
      "fileid": "62cdcd0abcd8df9ca0f63170f91b05b48e983fd2d7bc805f5c64e233462a87d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/metinbulus/actions/runs/26869946789"
    }
  ]
}