Package: cosa 2.1.0

cosa: Bound Constrained Optimal Sample Size Allocation

Implements bound constrained optimal sample size allocation (BCOSSA) framework described in Bulus & Dong (2021) <doi:10.1080/00220973.2019.1636197> for power analysis of multilevel regression discontinuity designs (MRDDs) and multilevel randomized trials (MRTs) with continuous outcomes. Minimum detectable effect size (MDES) and power computations for MRDDs allow polynomial functional form specification for the score variable (with or without interaction with the treatment indicator) (Bulus, in press).

Authors:Metin Bulus [aut, cre], Nianbo Dong [aut]

cosa_2.1.0.tar.gz
cosa_2.1.0.zip(r-4.5)cosa_2.1.0.zip(r-4.4)cosa_2.1.0.zip(r-4.3)
cosa_2.1.0.tgz(r-4.4-any)cosa_2.1.0.tgz(r-4.3-any)
cosa_2.1.0.tar.gz(r-4.5-noble)cosa_2.1.0.tar.gz(r-4.4-noble)
cosa_2.1.0.tgz(r-4.4-emscripten)cosa_2.1.0.tgz(r-4.3-emscripten)
cosa.pdf |cosa.html
cosa/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/metinbulus/cosa/issues

On CRAN:

3.88 score 15 scripts 236 downloads 66 exports 19 dependencies

Last updated 3 years agofrom:ff7ccbf196. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winOKNov 05 2024
R-4.5-linuxOKNov 05 2024
R-4.4-winOKNov 05 2024
R-4.4-macOKNov 05 2024
R-4.3-winOKNov 05 2024
R-4.3-macOKNov 05 2024

Exports:cosa.bcrd3f2cosa.bcrd3r2cosa.bcrd4f3cosa.bcrd4r2cosa.bcrd4r3cosa.bird2cosa.bird2f1cosa.bird2r1cosa.bird3cosa.bird3r1cosa.bird4cosa.bird4r1cosa.crd2cosa.crd2r2cosa.crd3cosa.crd3r3cosa.crd4cosa.crd4r4emp.momentinspect.scoremdes.bcrd3f2mdes.bcrd3r2mdes.bcrd4f3mdes.bcrd4r2mdes.bcrd4r3mdes.bird2mdes.bird2f1mdes.bird2r1mdes.bird3mdes.bird3r1mdes.bird4mdes.bird4r1mdes.crd2mdes.crd2r2mdes.crd3mdes.crd3r3mdes.crd4mdes.crd4r4mdes.irdmdes.ird1r1plot.cosaplot.mdesplot.powerpower.bcrd3f2power.bcrd3r2power.bcrd4f3power.bcrd4r2power.bcrd4r3power.bird2power.bird2f1power.bird2r1power.bird3power.bird3r1power.bird4power.bird4r1power.crd2power.crd2r2power.crd3power.crd3r3power.crd4power.crd4r4power.irdpower.ird1r1tnorm.momentunif.momentvectorize.cosa

Dependencies:cliexpmfansigenericsgluelatticelifecyclemagrittrMatrixmsmmvtnormnloptrpillarpkgconfigrlangsurvivaltibbleutf8vctrs

Bound Constrained Optimal Design of Multilevel Regression Discontinuity Designs and Randomized Controlled Trials

Rendered fromcosa_tutorial.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2020-04-04
Started: 2019-10-27

Readme and manuals

Help Manual

Help pageTopics
Bound Constrained Optimal Design of MRDDs and MRTscosa-package
Blocked (Random) Cluster-level Regression Discontinuity (Three-level Design, Discontinuity at Level 2)bcrd3r2 cosa.bcrd3r2 mdes.bcrd3r2 power.bcrd3r2
Blocked (Random) Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 2)bcrd4r2 cosa.bcrd4r2 mdes.bcrd4r2 power.bcrd4r2
Blocked (Random) Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 3)bcrd4r3 cosa.bcrd4r3 mdes.bcrd4r3 power.bcrd4r3
Blocked (Random) Individual-level Regression Discontinuity (Two-level Design, Discontinuity at Level 1)bird2 bird2r1 cosa.bird2 cosa.bird2r1 mdes.bird2 mdes.bird2r1 power.bird2 power.bird2r1
Blocked (Random) Individual-level Regression Discontinuity (Three-level Design, Discontinuity at Level 1)bird3 bird3r1 cosa.bird3 cosa.bird3r1 mdes.bird3 mdes.bird3r1 power.bird3 power.bird3r1
Blocked (Random) Individual-level Regression Discontinuity (Four-level Design, Discontinuity at Level 1)bird4 bird4r1 cosa.bird4 cosa.bird4r1 mdes.bird4 mdes.bird4r1 power.bird4 power.bird4r1
Deprecated and Defunct functions in 'cosa'cosa-deprecated
Cluster-level Regression Discontinuity (Two-level Design, Discontinuity at Level 2, w/ or w/o Strata or Fixed Blocks)bcrd3f2 cosa.bcrd3f2 cosa.crd2 cosa.crd2r2 crd2 crd2r2 mdes.bcrd3f2 mdes.crd2 mdes.crd2r2 power.bcrd3f2 power.crd2 power.crd2r2
Cluster-level Regression Discontinuity (Three-level Design, Discontinuity at Level 3, w/ or w/o Strata or Fixed Blocks)bcrd4f3 cosa.bcrd4f3 cosa.crd3 cosa.crd3r3 crd3 crd3r3 mdes.bcrd4f3 mdes.crd3 mdes.crd3r3 power.bcrd4f3 power.crd3 power.crd3r3
Cluster-level Regression Discontinuity (Four-level Design, Discontinuity at Level 4)cosa.crd4 cosa.crd4r4 crd4 crd4r4 mdes.crd4 mdes.crd4r4 power.crd4 power.crd4r4
Computes Regression Discontinuity Design Effectsinspect.score
Simple Individual-level Regression Discontinuity (w/ or w/o Strata or Fixed Blocks)bird2f1 cosa.bird2f1 ird ird1r1 mdes.bird2f1 mdes.ird mdes.ird1r1 power.bird2f1 power.ird power.ird1r1
Momentsemp.moment tnorm.moment unif.moment
Power and MDES Curvesplot.cosa plot.mdes plot.power
Vectorizes BCOSSA Solutionsvectorize.cosa