{
  "_id": "6ac9f9bdfe5cc25786e838ba",
  "Package": "TwoRegression",
  "Type": "Package",
  "Title": "Develop and Apply Two-Regression Algorithms",
  "Version": "1.1.1",
  "Authors@R": "c(\nperson(c(\"Paul\", \"R.\"), \"Hibbing\", email = \"paulhibbing@gmail.com\",\nrole = c(\"aut\",\"cre\")),\nperson(c(\"Vincent\", \"T.\"), \"van Hees\", role = \"ctb\"))",
  "Description": "Facilitates development and application of two-regression\nalgorithms for research-grade wearable devices. It provides an\neasy way for users to access previously-developed algorithms,\nand also to develop their own. Initial motivation came from\nHibbing PR, LaMunion SR, Kaplan AS, & Crouter SE (2018)\n<doi:10.1249/MSS.0000000000001532>. However, other algorithms\nare now supported. Please see the associated references in the\npackage documentation for full details of the algorithms that\nare supported.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.2",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/paulhibbing/TwoRegression",
  "BugReports": "https://github.com/paulhibbing/TwoRegression/issues",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://paulhibbing.r-universe.dev",
  "Date/Publication": "2025-11-15 12:36:04 UTC",
  "RemoteUrl": "https://github.com/paulhibbing/tworegression",
  "RemoteRef": "HEAD",
  "RemoteSha": "1ecf30de33892765ad82320062d660cedf79db17",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-10 08:15:03 UTC",
    "User": "root"
  },
  "Author": "Paul R. Hibbing [aut, cre],\nVincent T. van Hees [ctb]",
  "Maintainer": "Paul R. Hibbing <paulhibbing@gmail.com>",
  "_user": "paulhibbing",
  "_type": "src",
  "_file": "TwoRegression_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/2ec4c3c615a0e76daad75c905f686292c72f5a2985c60f514f0fe59c07a51b91",
  "_filesize": 1052056,
  "_sha256": "2ec4c3c615a0e76daad75c905f686292c72f5a2985c60f514f0fe59c07a51b91",
  "_expires": "2027-01-18T08:39:23.000Z",
  "_created": "2026-10-10T08:15:03.000Z",
  "_published": "2026-10-10T08:39:25.554Z",
  "_buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114170138037,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11663559751"
    },
    {
      "job": 114170138044,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11663833109"
    },
    {
      "job": 114170138058,
      "time": 197,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11664414349"
    },
    {
      "job": 114170138088,
      "time": 186,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11664871604"
    },
    {
      "job": 114169582718,
      "time": 186,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11664428941"
    },
    {
      "job": 114170138054,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11663559713"
    },
    {
      "job": 114170138042,
      "time": 100,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11664409204"
    },
    {
      "job": 114170138069,
      "time": 89,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11663809452"
    },
    {
      "job": 114170138043,
      "time": 94,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11664189314"
    }
  ],
  "_upstream": "https://github.com/paulhibbing/tworegression",
  "_commit": {
    "id": "1ecf30de33892765ad82320062d660cedf79db17",
    "author": "Paul R. Hibbing <paulhibbing@gmail.com>",
    "committer": "Paul R. Hibbing <paulhibbing@gmail.com>",
    "message": "Tweak NEWS\n",
    "time": 1763210164
  },
  "_maintainer": {
    "name": "Paul R. Hibbing",
    "email": "paulhibbing@gmail.com",
    "login": "paulhibbing",
    "description": "",
    "uuid": 12754590
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 0.5.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "version": ">= 2.3",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "PAutilities",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "version": ">= 1.16.0",
      "role": "Imports"
    },
    {
      "package": "RcppRoll",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "paulhibbing",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-45",
      "n": 8
    },
    {
      "week": "2025-46",
      "n": 6
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "paulhibbing",
      "count": 64,
      "uuid": 12754590
    }
  ],
  "_userbio": {
    "uuid": 12754590,
    "type": "user",
    "name": "paulhibbing",
    "followers": 21
  },
  "_downloads": {
    "count": 375,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TwoRegression"
  },
  "_devurl": "https://github.com/paulhibbing/tworegression",
  "_searchresults": 26,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TwoRegression.html"
  ],
  "_homeurl": "https://github.com/paulhibbing/tworegression",
  "_realowner": "paulhibbing",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2018-03-19"
    },
    {
      "version": "1.0.0",
      "date": "2022-09-05"
    },
    {
      "version": "1.1.1",
      "date": "2025-11-19"
    }
  ],
  "_exports": [
    "cv_2rm",
    "fit_2rm",
    "is.TwoRegression",
    "smooth_2rm",
    "TwoRegression"
  ],
  "_datasets": [
    {
      "name": "all_data",
      "title": "Two-regression-ready data frame",
      "object": "all_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "PID",
        "file_source_PrimaryAccel",
        "date_processed_PrimaryAccel",
        "file_source_IMU",
        "date_processed_IMU",
        "Timestamp",
        "day_of_year",
        "minute_of_day",
        "ENMO",
        "Gyroscope_VM_DegPerS",
        "mean_abs_Gyroscope_x_DegPerS",
        "mean_abs_Gyroscope_y_DegPerS",
        "mean_abs_Gyroscope_z_DegPerS",
        "mean_magnetometer_direction",
        "ENMO_CV10s",
        "GVM_CV10s",
        "Direction"
      ],
      "rows": 299,
      "table": true,
      "tojson": true
    },
    {
      "name": "count_data",
      "title": "Activity count data for demonstrating prior two-regression models",
      "object": "count_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "Axis1",
        "Axis2",
        "Axis3",
        "Vector.Magnitude"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    },
    {
      "name": "imu_to_check",
      "title": "IMU data to check",
      "object": "imu_to_check",
      "class": [
        "data.frame"
      ],
      "fields": [
        "file_source_IMU",
        "date_processed_IMU",
        "Timestamp",
        "Gyroscope_VM_DegPerS",
        "mean_abs_Gyroscope_x_DegPerS",
        "mean_abs_Gyroscope_y_DegPerS",
        "mean_abs_Gyroscope_z_DegPerS",
        "mean_magnetometer_direction"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "imu_to_collapse",
      "title": "IMU data to collapse",
      "object": "imu_to_collapse",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "Timestamp",
        "Accelerometer.X",
        "Accelerometer.Y",
        "Accelerometer.Z",
        "Temperature",
        "Gyroscope.X",
        "Gyroscope.Y",
        "Gyroscope.Z",
        "Magnetometer.X",
        "Magnetometer.Y",
        "Magnetometer.Z",
        "file_source_IMU",
        "date_processed_IMU",
        "ms",
        "mean_Accel_VM",
        "Gyroscope_VM_DegPerS",
        "Magnetometer_VM_MicroT"
      ],
      "rows": 1500,
      "table": true,
      "tojson": true
    },
    {
      "name": "raw_for_cv",
      "title": "Primary accelerometer data to calculate coefficient of variation per 10-s",
      "object": "raw_for_cv",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "Block",
        "ENMO"
      ],
      "rows": 299,
      "table": true,
      "tojson": true
    },
    {
      "name": "raw_to_collapse",
      "title": "Primary accelerometer data to collapse",
      "object": "raw_to_collapse",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "Accelerometer X",
        "Accelerometer Y",
        "Accelerometer Z"
      ],
      "rows": 24000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "all_data",
      "title": "Two-regression-ready data frame",
      "topics": [
        "all_data"
      ]
    },
    {
      "page": "count_data",
      "title": "Activity count data for demonstrating prior two-regression models",
      "topics": [
        "count_data"
      ]
    },
    {
      "page": "fit_2rm",
      "title": "Develop a two-regression algorithm",
      "topics": [
        "fit_2rm",
        "is.TwoRegression"
      ]
    },
    {
      "page": "imu_to_check",
      "title": "IMU data to check",
      "topics": [
        "imu_to_check"
      ]
    },
    {
      "page": "imu_to_collapse",
      "title": "IMU data to collapse",
      "topics": [
        "imu_to_collapse"
      ]
    },
    {
      "page": "plot.TwoRegression",
      "title": "Create summary plots for TwoRegression objects",
      "topics": [
        "plot.TwoRegression"
      ]
    },
    {
      "page": "predict.TwoRegression",
      "title": "Predict metabolic equivalents from a TwoRegression object",
      "topics": [
        "predict.TwoRegression"
      ]
    },
    {
      "page": "raw_for_cv",
      "title": "Primary accelerometer data to calculate coefficient of variation per 10-s",
      "topics": [
        "raw_for_cv"
      ]
    },
    {
      "page": "raw_to_collapse",
      "title": "Primary accelerometer data to collapse",
      "topics": [
        "raw_to_collapse"
      ]
    },
    {
      "page": "smooth_2rm",
      "title": "Smooth two-regression estimates over specified periods",
      "topics": [
        "smooth_2rm"
      ]
    },
    {
      "page": "TwoRegression-Package",
      "title": "Develop and Apply Two-Regression Algorithms",
      "topics": [
        "TwoRegression-Package"
      ]
    }
  ],
  "_readme": "https://github.com/paulhibbing/tworegression/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "class",
    "cli",
    "cpp11",
    "dplyr",
    "e1071",
    "equivalence",
    "farver",
    "generics",
    "ggplot2",
    "gld",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lazyeval",
    "lifecycle",
    "lmom",
    "lubridate",
    "magrittr",
    "MASS",
    "mvtnorm",
    "PairedData",
    "PAutilities",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppRoll",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "TwoRegression.Rmd",
      "filename": "TwoRegression.html",
      "title": "The TwoRegression Package",
      "author": "Paul R. Hibbing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "INTRODUCTION",
        "IMPLEMENTING TWO-REGRESSION MODELS THAT ALREADY EXIST",
        "Approach and Options",
        "Help documentation",
        "Assumptions and Data",
        "Applying Crouter models (for activity count data)",
        "Applying Hibbing models (for raw sensor data)",
        "FITTING AND EXAMINING NEW MODELS",
        "Background and Setup",
        "Fitting the Model",
        "Examining Model Performance",
        "USING NEW MODELS",
        "CONCLUSION"
      ],
      "created": "2022-08-08 17:46:20",
      "modified": "2022-08-27 04:05:42",
      "commits": 6
    }
  ],
  "_score": 4.892094602690481,
  "_indexed": true,
  "_nocasepkg": "tworegression",
  "_universes": [
    "paulhibbing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-10T08:17:13.000Z",
      "distro": "resolute",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/2cc7707a9ab38cebb2dccb2eef6aba746164de7bf5b7f7f11fa2ee55b1d1876f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-10T08:17:27.000Z",
      "distro": "resolute",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/2b122affd0b29cd65a92adba5c3bebc9afe6a0f6ae21340ae2b023ba77ce4c18",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-10T08:37:58.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/e284a2493b6a80f38e390c0cf9e79d18802ed4af4315a2fb7cd46a2716b02b4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-10T08:37:13.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/48516d8d2fa05bcb6b2710627dd74d0b1a0bef7ed5252aef73f857eb314c1848",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-10-10T08:17:32.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/9f76810936919845a52a3eed63a7b4ed734869172f5d983f0a726e2c1fbeb7f7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-10T08:16:18.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/7817ecd6898984fe0380c8a56a4d44482d738c5aa0f434cd7e6e385058a4814c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-10T08:16:14.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/fd6896bdf281ad78e1684f34920622a7272174dd5d0847652e1a7c3024a1318d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-10T08:16:17.000Z",
      "commit": "1ecf30de33892765ad82320062d660cedf79db17",
      "fileid": "https://r2.ropensci.org/4aff7e07728e6bdccce340bf24bf76f7bd4c7c7af6aabe19bf8aaf42940a425f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulhibbing/actions/runs/38037041500"
    }
  ]
}