{
  "_id": "6a47908c8b9f0d9747cf1703",
  "Package": "pika",
  "Title": "Evaluate Correlation Between Time Series",
  "Version": "0.2.0",
  "Authors@R": "person(given = \"Kylie\",\nfamily = \"Ainslie\",\nrole = c(\"aut\", \"cre\"),\nemail = \"ainslie.kylie@gmail.com\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-5419-7206\"))",
  "Description": "This package takes two time series as inputs and first,\ndetermines the lag for the primary time series at which the\ncross-correlation between the two time series is highest.\nSecond, the rolling correlation is calculated between the\nlagged primary time-series and the secondary time series.",
  "License": "MIT + file LICENSE",
  "URL": "https://mrc-ide.github.io/pika/, https://github.com/mrc-ide/pika",
  "BugReports": "https://github.com/mrc-ide/pika/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://ncov-ic.r-universe.dev",
  "Date/Publication": "2026-07-02 05:44:55 UTC",
  "RemoteUrl": "https://github.com/mrc-ide/pika",
  "RemoteRef": "master",
  "RemoteSha": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-02 08:56:06 UTC",
    "User": "root"
  },
  "Author": "Kylie Ainslie [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5419-7206>)",
  "Maintainer": "Kylie Ainslie <ainslie.kylie@gmail.com>",
  "_user": "ncov-ic",
  "_type": "src",
  "_file": "pika_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/3788bfe54980a6837b145b32e1de8877363370af8789af1c3899477896be9a7f",
  "_filesize": 173186,
  "_sha256": "3788bfe54980a6837b145b32e1de8877363370af8789af1c3899477896be9a7f",
  "_expires": "2026-10-11T10:35:55.000Z",
  "_created": "2026-07-02T08:56:06.000Z",
  "_published": "2026-07-03T10:35:56.486Z",
  "_jobs": [
    {
      "job": 84981892912,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8033788644"
    },
    {
      "job": 84981892915,
      "time": 196,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033796098"
    },
    {
      "job": 84981892903,
      "time": 131,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8033769741"
    },
    {
      "job": 84981892948,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033764179"
    },
    {
      "job": 84981892327,
      "time": 205,
      "config": "source",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033717942"
    },
    {
      "job": 84981892875,
      "time": 160,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8033781794"
    },
    {
      "job": 84981893009,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8033763903"
    },
    {
      "job": 84981892979,
      "time": 110,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8033762330"
    },
    {
      "job": 84981892880,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8033762751"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456",
  "_status": "failure",
  "_upstream": "https://github.com/mrc-ide/pika",
  "_commit": {
    "id": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
    "author": "Kylie Ainslie <ainslie.kylie@gmail.com>",
    "committer": "Kylie Ainslie <ainslie.kylie@gmail.com>",
    "message": "Fix documentation inaccuracies found during accuracy check\n\n- rolling_corr @return: clarify that NA rows in x_var/y_var are dropped\n  before computing, so the returned frame may have fewer rows than input\n- calc_percent_change @param start_date: replace vague \"same format as\n  date_var\" with explicit \"YYYY-MM-DD\"; clarify that NULL uses the earliest\n  date across the combined dataset, not per group\n- plot_corr description: soften \"must contain roll_corr\" to \"if absent the\n  line is omitted\" (no error is thrown); note that reference lines at -1 and\n  1 are dashed, 0 is solid\n- plot_corr @param legend_labels: fix \"column names are used\" when NULL to\n  \"internal metric names (roll_corr, x_var, y_var) are shown\"\n- data.R china_case_data: fix remaining \"where cases occured\" typo to\n  \"where cases were reported\"\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>\n",
    "time": 1782971095
  },
  "_maintainer": {
    "name": "Kylie Ainslie",
    "email": "ainslie.kylie@gmail.com",
    "login": "kylieainslie",
    "bluesky": "@kylieainslie.bsky.social",
    "linkedin": "in/kylieainslie",
    "orcid": "0000-0001-5419-7206",
    "description": "Modelling for Policy Lead at the Peter Doherty Institute for Infection and Immunity and The University of Melbourne",
    "uuid": 9805381
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "EpiEstim",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "TTR",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mrc-ide",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-02",
      "n": 3
    },
    {
      "week": "2026-27",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-01-05"
    }
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "kylieainslie",
      "count": 89,
      "uuid": 9805381
    },
    {
      "user": "richfitz",
      "count": 7,
      "uuid": 1558093
    }
  ],
  "_userbio": {
    "uuid": 60158495,
    "type": "organization",
    "name": "mrc-ide covid response",
    "followers": 1
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/pika"
  },
  "_devurl": "https://github.com/mrc-ide/pika",
  "_pkgdown": "https://mrc-ide.github.io/pika/",
  "_searchresults": 13,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/pika.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "calc_percent_change",
    "cross_corr",
    "estimate_rt",
    "plot_corr",
    "plot_lag",
    "rolling_corr"
  ],
  "_datasets": [
    {
      "name": "china_case_data",
      "title": "Daily confirmed cases of COVID-19 in China",
      "object": "china_case_data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "province",
        "cases"
      ],
      "rows": 483,
      "table": true,
      "tojson": true
    },
    {
      "name": "exante_movement_data",
      "title": "Daily within-city movement data for different regions in China",
      "object": "exante_movement_data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "date",
        "province",
        "movement"
      ],
      "rows": 672,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_percent_change",
      "title": "Convert a count time series to fractional change relative to a baseline period",
      "topics": [
        "calc_percent_change"
      ]
    },
    {
      "page": "china_case_data",
      "title": "Daily confirmed cases of COVID-19 in China",
      "topics": [
        "china_case_data"
      ]
    },
    {
      "page": "cross_corr",
      "title": "Find the lag at which cross-correlation between two time series is maximised",
      "topics": [
        "cross_corr"
      ]
    },
    {
      "page": "estimate_rt",
      "title": "Estimate the effective reproduction number (Rt) over time by group",
      "topics": [
        "estimate_rt"
      ]
    },
    {
      "page": "exante_movement_data",
      "title": "Daily within-city movement data for different regions in China",
      "topics": [
        "exante_movement_data"
      ]
    },
    {
      "page": "plot_corr",
      "title": "Plot time series and rolling correlation over time by group",
      "topics": [
        "plot_corr"
      ]
    },
    {
      "page": "plot_lag",
      "title": "Plot a histogram of optimal lags across groups",
      "topics": [
        "plot_lag"
      ]
    },
    {
      "page": "rolling_corr",
      "title": "Calculate rolling (moving-window) correlation between two time series",
      "topics": [
        "rolling_corr"
      ]
    }
  ],
  "_readme": "https://github.com/mrc-ide/pika/raw/master/README.md",
  "_rundeps": [
    "aweek",
    "cli",
    "coarseDataTools",
    "coda",
    "cpp11",
    "curl",
    "dplyr",
    "EpiEstim",
    "farver",
    "fitdistrplus",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "incidence",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mcmc",
    "MCMCpack",
    "pillar",
    "pkgconfig",
    "plyr",
    "purrr",
    "quantreg",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "TTR",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xts",
    "zoo"
  ],
  "_score": 2.716003343634799,
  "_indexed": false,
  "_nocasepkg": "pika",
  "_universes": [
    "ncov-ic"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-07-02T08:58:40.000Z",
      "distro": "resolute",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/b133901480f5a7c0f852e530d1dd1c007d33a88012b313d6f466efe2af5c5f82",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-07-02T08:58:54.000Z",
      "distro": "resolute",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/a9e891ba82b8a3fa25c148406cf5ee8ac0151db230ffa3455d2cc9b74a48b0df",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-07-02T08:57:57.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/8011fc92e421347a4ec13d0e6090409db11f175b777d9e07c91bce5cbe5bdfa0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-07-02T08:57:46.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/72d66988f5b9929c27dd945626e1fcec05f56f11216fcbeaf27144bc24e56880",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-07-02T08:59:06.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/2ab394bfd6db31d70f839fb911a635b5c23fc15f2c1e8f50bff4f5e8752a6aba",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-02T08:57:23.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/708efb6169a4e102cff57db21557365caba95b7895b364b9ac8853cb86d1715b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-02T08:57:25.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/36de203d9b6c0c9f5f00f3935dd04beee3b49203157c2080e72e97a47cb04dbf",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-02T08:57:27.000Z",
      "commit": "40bc8202e39ea22dd1f2ebf23bad2d8c060a8960",
      "fileid": "https://r2.ropensci.org/ca73401b57b0627f30a8cd501a8f33deb044d2c725c97e59755d167e509986ad",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ncov-ic/actions/runs/28577724456"
    }
  ]
}