{
  "_id": "6a2538fe4b233be198398275",
  "Package": "scdtb",
  "Title": "Single Case Design Tools",
  "Version": "0.2.0.9000",
  "Authors@R": "c(\nperson(\"Mackson\", \"Ncube\", , \"macksonncube.stats@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"mightymetrika, LLC\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "In some situations where researchers would like to\ndemonstrate causal effects, it is hard to obtain a sample size\nthat would allow for a well-powered randomized controlled\ntrial. Single case designs are experimental designs that can be\nused to demonstrate causal effects with only one participant or\nwith only a few participants. The 'scdtb' package provides a\nsuite of tools for analyzing data from studies that use single\ncase designs. The nap() function can be used to compute the\nnonoverlap of all pairs as outlined by the What Works\nClearinghouse (2022) <https://ies.ed.gov/ncee/wwc/Handbooks>.\nThe package also offers the mixed_model_analysis() and\ncross_lagged() functions which implement mixed effects models\nand cross lagged analyses as described in Maric & van der Werff\n(2020) <doi:10.4324/9780429273872-9>. The randomization_test()\nfunction implements randomization tests based on methods\npresented in Onghena (2020) <doi:10.4324/9780429273872-8>. The\nscdtb() 'shiny' application can be used to upload single case\ndesign data and access various 'scdtb' tools for plotting and\nanalysis.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://github.com/mightymetrika/scdtb",
  "BugReports": "https://github.com/mightymetrika/scdtb/issues",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libicu-dev libsodium-dev libuv1-dev\nlibpq-dev zlib1g-dev",
  "Repository": "https://mightymetrika.r-universe.dev",
  "Date/Publication": "2024-09-23 14:07:46 UTC",
  "RemoteUrl": "https://github.com/mightymetrika/scdtb",
  "RemoteRef": "HEAD",
  "RemoteSha": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-07 09:22:19 UTC",
    "User": "root"
  },
  "Author": "Mackson Ncube [aut, cre],\nmightymetrika, LLC [cph, fnd]",
  "Maintainer": "Mackson Ncube <macksonncube.stats@gmail.com>",
  "MD5sum": "398745235281316222dc4922873e82ee",
  "_user": "mightymetrika",
  "_type": "src",
  "_file": "scdtb_0.2.0.9000.tar.gz",
  "_fileid": "7f078587a987c36c8c13464b64b59a8a3e94350581169734297979ae77598254",
  "_filesize": 2021152,
  "_sha256": "7f078587a987c36c8c13464b64b59a8a3e94350581169734297979ae77598254",
  "_created": "2026-06-07T09:22:19.000Z",
  "_published": "2026-06-07T09:25:18.852Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79947608844,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462789342"
    },
    {
      "job": 79947608847,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462791788"
    },
    {
      "job": 79947608859,
      "time": 93,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462784709"
    },
    {
      "job": 79947608841,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462783967"
    },
    {
      "job": 79947418026,
      "time": 195,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462772993"
    },
    {
      "job": 79947608840,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462791596"
    },
    {
      "job": 79947608853,
      "time": 105,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462786847"
    },
    {
      "job": 79947608851,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462784705"
    },
    {
      "job": 79947608852,
      "time": 108,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462786803"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mightymetrika/scdtb",
  "_commit": {
    "id": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
    "author": "Mackson Ncube <mightymetrika@proton.me>",
    "committer": "Mackson Ncube <mightymetrika@proton.me>",
    "message": "Increment version number to 0.2.0.9000\n",
    "time": 1727100466
  },
  "_maintainer": {
    "name": "Mackson Ncube",
    "email": "macksonncube.stats@gmail.com",
    "login": "mightymetrika",
    "twitter": "@mightymetrika",
    "description": "",
    "uuid": 134214097
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "broom.mixed",
      "role": "Imports"
    },
    {
      "package": "DT",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "mmcards",
      "role": "Imports"
    },
    {
      "package": "mmints",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Imports"
    },
    {
      "package": "shinythemes",
      "role": "Imports"
    },
    {
      "package": "sn",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mightymetrika",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "data",
    "math",
    "science",
    "statistics"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mightymetrika",
      "count": 54,
      "uuid": 134214097
    },
    {
      "user": "mncube",
      "count": 37,
      "uuid": 46875726
    }
  ],
  "_userbio": {
    "uuid": 134214097,
    "type": "user",
    "name": "mightymetrika"
  },
  "_downloads": {
    "count": 139,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scdtb"
  },
  "_devurl": "https://github.com/mightymetrika/scdtb",
  "_searchresults": 7,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/scdtb.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mightymetrika/scdtb",
  "_realowner": "mightymetrika",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-04-30"
    },
    {
      "version": "0.2.0",
      "date": "2024-09-20"
    }
  ],
  "_exports": [
    "cross_lagged",
    "mixed_model_analysis",
    "nap",
    "napjack",
    "randomization_test",
    "raw_plot",
    "replext_gls",
    "replext_pgsql",
    "scdtb",
    "simulate_gls_once"
  ],
  "_datasets": [
    {
      "name": "basic_scd",
      "title": "Basic Single Case Design",
      "object": "basic_scd",
      "class": [
        "data.frame"
      ],
      "fields": [
        "phase",
        "time",
        "socbehavs"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "efficacy_of_CBT",
      "title": "Fictional Single Case Design Efficacy of CBT Example",
      "object": "efficacy_of_CBT",
      "class": [
        "data.frame"
      ],
      "fields": [
        "phase",
        "Anxious",
        "CATS_N",
        "time"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "reversal_withdrawal",
      "title": "Reversal/withdrawal Design Example",
      "object": "reversal_withdrawal",
      "class": [
        "data.frame"
      ],
      "fields": [
        "phase",
        "time",
        "extbehavs"
      ],
      "rows": 21,
      "table": true,
      "tojson": true
    },
    {
      "name": "sleeping_pills",
      "title": "Sleeping Pills and Dizziness Example",
      "object": "sleeping_pills",
      "class": [
        "data.frame"
      ],
      "fields": [
        "day",
        "treatment",
        "sever_compl"
      ],
      "rows": 14,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "basic_scd",
      "title": "Basic Single Case Design",
      "topics": [
        "basic_scd"
      ]
    },
    {
      "page": "cross_lagged",
      "title": "Cross-Lagged Correlation",
      "topics": [
        "cross_lagged"
      ]
    },
    {
      "page": "efficacy_of_CBT",
      "title": "Fictional Single Case Design Efficacy of CBT Example",
      "topics": [
        "efficacy_of_CBT"
      ]
    },
    {
      "page": "mixed_model_analysis",
      "title": "Mixed Model Analysis",
      "topics": [
        "mixed_model_analysis"
      ]
    },
    {
      "page": "nap",
      "title": "Non-overlap of All Pairs (NAP) Analysis",
      "topics": [
        "nap"
      ]
    },
    {
      "page": "napjack",
      "title": "Nap Jack: A Single Case Design Card Game",
      "topics": [
        "napjack"
      ]
    },
    {
      "page": "plot.cross_lagged",
      "title": "Plot Cross-Lagged Correlation Results",
      "topics": [
        "plot.cross_lagged"
      ]
    },
    {
      "page": "plot.replext_gls",
      "title": "Plot Results from Replications and Extension of GLS Simulation",
      "topics": [
        "plot.replext_gls"
      ]
    },
    {
      "page": "print.cross_lagged",
      "title": "Print Method for Cross-Lagged Objects",
      "topics": [
        "print.cross_lagged"
      ]
    },
    {
      "page": "randomization_test",
      "title": "Randomization Test for Single-Case Experiments",
      "topics": [
        "randomization_test"
      ]
    },
    {
      "page": "raw_plot",
      "title": "Plot Raw Data with Optional Phase and Condition Annotations",
      "topics": [
        "raw_plot"
      ]
    },
    {
      "page": "replext_gls",
      "title": "Replications and Extension of Generalized Least Squares Simulation",
      "topics": [
        "replext_gls"
      ]
    },
    {
      "page": "replext_pgsql",
      "title": "Replication and Extension of Generalized Least Squares Simulation Shiny App",
      "topics": [
        "replext_pgsql"
      ]
    },
    {
      "page": "reversal_withdrawal",
      "title": "Reversal/withdrawal Design Example",
      "topics": [
        "reversal_withdrawal"
      ]
    },
    {
      "page": "scdtb",
      "title": "Single Case Design Toolbox Shiny Application",
      "topics": [
        "scdtb"
      ]
    },
    {
      "page": "simulate_gls_once",
      "title": "Simulate and Analyze Generalized Least Squares",
      "topics": [
        "simulate_gls_once"
      ]
    },
    {
      "page": "sleeping_pills",
      "title": "Sleeping Pills and Dizziness Example",
      "topics": [
        "sleeping_pills"
      ]
    }
  ],
  "_readme": "https://github.com/mightymetrika/scdtb/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bit",
    "bit64",
    "blob",
    "broom",
    "broom.mixed",
    "bslib",
    "cachem",
    "cli",
    "coda",
    "codetools",
    "commonmark",
    "cpp11",
    "crosstalk",
    "DBI",
    "digest",
    "dplyr",
    "DT",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "furrr",
    "future",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lazyeval",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mime",
    "mmcards",
    "mmints",
    "mnormt",
    "nlme",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgconfig",
    "pool",
    "promises",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rmarkdown",
    "RPostgres",
    "S7",
    "sass",
    "scales",
    "shiny",
    "shinyauthr",
    "shinyjs",
    "shinythemes",
    "sn",
    "sodium",
    "sourcetools",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "yaml"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "scdtb",
  "_universes": [
    "mightymetrika"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:24:32.000Z",
      "distro": "noble",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "8bca4848858676dcefb5e695370af5939d6780cd3469fa0b2d940d2591124be3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:24:47.000Z",
      "distro": "noble",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "e391352f24c7108a4c76846f947b853c1aa1355d175e2b19454952ee2b37d267",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:23:58.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "af1b806ff00d652e24e4863b742962fd7b7c968f3bd60f95561b95e1c12f71c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:23:55.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "ff839d6db0d3e74c9fb529a5348a91f30437877eb86494d3ebe2a5957e846c86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:25:05.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "6549759611e59ff555ccfb17964d923be4dea3181cf56463af02192273ef4ac3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:24:02.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "bba049c58d1913eee764c29ff3d1fd699c2656262583bc2adf1728acb1c43281",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:23:46.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "89f2af6dbb00a0c441186e97bcb3a5cc47cfe08c1e7f0fe52a0ba0e9ccbd1754",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-07T09:24:01.000Z",
      "commit": "d8e0ea4fe652393608af4d582d170aed0e15bf0d",
      "fileid": "0bc11edb2d713f4cc8f044dd4ef37176ab8af0e252a3a602869f9804a05b7542",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mightymetrika/actions/runs/27088449874"
    }
  ]
}