{
  "_id": "6ae5a81395ca2370cc8d1032",
  "Package": "multipleITScontrol",
  "Type": "Package",
  "Title": "Interrupted Time Series with a Control and Multiple\nInterventions",
  "Version": "0.1.0",
  "Authors@R": "c(person(\"Victor\", \"Yu\", email = \"victor.yu@hertfordshire.gov.uk\", role = c(\"cre\",\"aut\")), person(\"Emily\", \"Dickson\", role = c(\"ctb\")))",
  "Description": "Provides tools to perform interrupted-time series through\na generalised least squares (GLS) framework on linear outcomes.\nAllows for multiple interventions and a control with ARMA\n(autoregressive and moving-average) correction. For more\ndetails see Lopez Bernal, Cummins, and Gasparrini (2017)\n<doi:10.1093/ije/dyw098>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://herts-phei.github.io/multipleITScontrol/",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://herts-phei.r-universe.dev",
  "Date/Publication": "2026-03-31 11:29:56 UTC",
  "RemoteUrl": "https://github.com/herts-phei/multipleitscontrol",
  "RemoteRef": "HEAD",
  "RemoteSha": "6764a9c47d013c0322aa6db4e4b264d502e41617",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-31 08:00:57 UTC",
    "User": "root"
  },
  "Author": "Victor Yu [cre, aut],\nEmily Dickson [ctb]",
  "Maintainer": "Victor Yu <victor.yu@hertfordshire.gov.uk>",
  "_user": "herts-phei",
  "_type": "src",
  "_file": "multipleITScontrol_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/193d4b4add860b8b73cb3a778b786fefe63c99ed6dfb798eb963d0bb67255694",
  "_filesize": 2264204,
  "_sha256": "193d4b4add860b8b73cb3a778b786fefe63c99ed6dfb798eb963d0bb67255694",
  "_expires": "2027-02-08T08:34:25.000Z",
  "_created": "2026-10-31T08:00:57.000Z",
  "_published": "2026-10-31T08:34:27.290Z",
  "_upstream": "https://github.com/herts-phei/multipleitscontrol",
  "_status": "success",
  "_maintainer": {
    "name": "Victor Yu",
    "email": "victor.yu@hertfordshire.gov.uk"
  },
  "_jobs": [
    {
      "job": 124483749141,
      "time": 207,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13036045108"
    },
    {
      "job": 124483749098,
      "time": 181,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13035518794"
    },
    {
      "job": 124483749125,
      "time": 175,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13036851839"
    },
    {
      "job": 124483749112,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13036016871"
    },
    {
      "job": 124482771244,
      "time": 301,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13035079692"
    },
    {
      "job": 124483749087,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13034669932"
    },
    {
      "job": 124483749103,
      "time": 101,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13035797423"
    },
    {
      "job": 124483749147,
      "time": 91,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13034964352"
    },
    {
      "job": 124483749101,
      "time": 99,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13035815152"
    }
  ],
  "_buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792",
  "_commit": {
    "id": "6764a9c47d013c0322aa6db4e4b264d502e41617",
    "author": "vyu <victor.yu@hertfordshire.gov.uk>",
    "committer": "vyu <victor.yu@hertfordshire.gov.uk>",
    "message": "sentence fix?\n",
    "time": 1774956596
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "AICcmodavg",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "ggpubr",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "forcats",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "sjPlot",
      "role": "Suggests"
    },
    {
      "package": "stringi",
      "role": "Suggests"
    },
    {
      "package": "zoo",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "herts-phei",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-12",
      "n": 22
    },
    {
      "week": "2026-13",
      "n": 10
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "victor-gy-yu",
      "count": 14,
      "uuid": 45132576
    },
    {
      "user": "edickson1",
      "count": 2,
      "uuid": 114758220
    }
  ],
  "_userbio": {
    "uuid": 114400152,
    "type": "organization",
    "name": "herts-phei",
    "followers": 6
  },
  "_downloads": {
    "count": 294,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/multipleITScontrol"
  },
  "_devurl": "https://github.com/herts-phei/multipleitscontrol",
  "_pkgdown": "https://herts-phei.github.io/multipleITScontrol/",
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/multipleITScontrol.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/herts-phei/multipleitscontrol",
  "_realowner": "herts-phei",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-03"
    }
  ],
  "_exports": [
    "fit_its_model",
    "generate_predictions",
    "its_plot",
    "slope_difference",
    "summary_its",
    "transform_data"
  ],
  "_datasets": [
    {
      "name": "its_data_bike_programme",
      "title": "Dummy Bike Programme Data",
      "object": "its_data_bike_programme",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Date",
        "group_var",
        "Period",
        "score"
      ],
      "rows": 104,
      "table": true,
      "tojson": true
    },
    {
      "name": "its_data_gp",
      "title": "GP programme Data",
      "object": "its_data_gp",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Date",
        "group_var",
        "Period",
        "score"
      ],
      "rows": 104,
      "table": true,
      "tojson": true
    },
    {
      "name": "its_data_school",
      "title": "Dummy School Data",
      "object": "its_data_school",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Date",
        "group_var",
        "Period",
        "score"
      ],
      "rows": 156,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "fit_its_model",
      "title": "fit_its_model",
      "topics": [
        "fit_its_model"
      ]
    },
    {
      "page": "generate_predictions",
      "title": "Generate Predictions from a Transformed Dataset and a Model",
      "topics": [
        "generate_predictions"
      ]
    },
    {
      "page": "its_data_bike_programme",
      "title": "Dummy Bike Programme Data",
      "topics": [
        "its_data_bike_programme"
      ]
    },
    {
      "page": "its_data_gp",
      "title": "GP programme Data",
      "topics": [
        "its_data_gp"
      ]
    },
    {
      "page": "its_data_school",
      "title": "Dummy School Data",
      "topics": [
        "its_data_school"
      ]
    },
    {
      "page": "its_plot",
      "title": "its_plot",
      "topics": [
        "its_plot"
      ]
    },
    {
      "page": "slope_difference",
      "title": "slope_difference",
      "topics": [
        "slope_difference"
      ]
    },
    {
      "page": "summary_its",
      "title": "Summarize and Rename Coefficients for an ITS Model",
      "topics": [
        "summary_its"
      ]
    },
    {
      "page": "transform_data",
      "title": "transform_data",
      "topics": [
        "transform_data"
      ]
    }
  ],
  "_pkglogo": "https://github.com/herts-phei/multipleitscontrol/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/herts-phei/multipleitscontrol/raw/HEAD/README.md",
  "_rundeps": [
    "AICcmodavg",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "nlme",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyselect",
    "TMB",
    "unmarked",
    "utf8",
    "vctrs",
    "VGAM",
    "viridisLite",
    "withr",
    "xtable"
  ],
  "_vignettes": [
    {
      "source": "ITScontrol_demonstration_level.Rmd",
      "filename": "ITScontrol_demonstration_level.html",
      "title": "Multiple ITS control introduction for level change (two-stage)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Usage",
        "Intervention 1: Smart‑Lock Upgrade (Fleet‑wide)",
        "Intervention 2: Predictive Maintenance Algorithm",
        "Controlled Interrupted Time Series Design (2 stage)",
        "Step 1) Loading data",
        "Step 2) Transforming the data",
        "Step 3) Fitting ITS model",
        "Step 4) Analysing ITS model",
        "First intervention:",
        "Second intervention:",
        "Step 5) Fitting Predictions",
        "Step 6) Plotting the results"
      ],
      "created": "2026-03-07 17:49:15",
      "modified": "2026-03-20 14:38:17",
      "commits": 7
    },
    {
      "source": "ITScontrol_demonstration_slope.Rmd",
      "filename": "ITScontrol_demonstration_slope.html",
      "title": "Multiple ITS control introduction for slope change (two-stage)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Usage",
        "Controlled Interrupted Time Series Design (2 stage)",
        "Step 1) Loading data",
        "Step 2) Transforming the data",
        "Step 3) Fitting ITS model",
        "Step 4) Analysing ITS model",
        "Pre-intervention period:",
        "First intervention:",
        "Second intervention:",
        "Step 5) Fitting Predictions",
        "Step 6) Plotting the results"
      ],
      "created": "2026-03-07 17:49:15",
      "modified": "2026-03-24 11:21:25",
      "commits": 7
    },
    {
      "source": "ITScontrol_demonstration_slope2.Rmd",
      "filename": "ITScontrol_demonstration_slope2.html",
      "title": "Multiple ITS control introduction for slope change 2nd example (two-stage)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Usage",
        "Controlled Interrupted Time Series Design (2 stage)",
        "Step 1) Loading data",
        "Step 2) Transforming the data",
        "Step 3) Fitting ITS model",
        "Step 4) Analysing ITS model",
        "Pre-intervention period:",
        "First intervention:",
        "Second intervention:",
        "Step 5) Fitting Predictions",
        "Step 6) Plotting the results"
      ],
      "created": "2026-03-19 11:28:00",
      "modified": "2026-03-24 11:44:28",
      "commits": 5
    }
  ],
  "_score": 4.954242509439325,
  "_indexed": true,
  "_nocasepkg": "multipleitscontrol",
  "_universes": [
    "herts-phei"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-31T08:04:04.000Z",
      "distro": "resolute",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/3e68d3c8cf2d4758e737ffeb8af522ffcbe03f6b9ee4f0c97a113c5b04a2a68d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-31T08:03:53.000Z",
      "distro": "resolute",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/3a88fe6a1964bcd4fea73b6bc7656e93d4a65636548678204cc549a70180f485",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-31T08:33:04.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/b9b91babac9b1f52e41a27fd22fff10b81cc02452d4174a884b0f89ff025ed0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-31T08:25:39.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/fbd615a5ddb987096daade907aef4218dcc537bb8c40a61afdc0eef1cbaab8c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-31T08:03:23.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/ad0eefd23c930d9bfde009e92c94f067dd6d5d8c1aaf6ad494a0880385bef18b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-31T08:02:22.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/848437accdca9df260c1bdb5f2a52df6036520a8aac08a00538e55cb6b9f846a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-31T08:02:16.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/69ee5c4ed2bfdb7abc046f03835abb1aa59ec7b41c4a2de564c330e7f259295b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-31T08:02:18.000Z",
      "commit": "6764a9c47d013c0322aa6db4e4b264d502e41617",
      "fileid": "https://r2.ropensci.org/7685a7f5d54017fbb90c1322fa0fa5432f0b2a0b099e93c98a65058b7a0123aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/herts-phei/actions/runs/41182540792"
    }
  ]
}