{
  "_id": "6a21f081cd65a98ecbd41dca",
  "Package": "chngpt",
  "LazyLoad": "yes",
  "LazyData": "yes",
  "Version": "2024.11-15",
  "Title": "Estimation and Hypothesis Testing for Threshold Regression",
  "Authors@R": "c(person(\"Youyi\", \"Fong\", role = \"cre\", email = \"youyifong@gmail.com\"),\nperson(\"Qianqian\", \"Chen\", role = \"aut\", email = \"qc25@uw.edu\"),\nperson(\"Shuangcheng\", \"Hua\", role = \"aut\", email = \"shuangch.hua@gmail.com\"),\nperson(\"Hyunju\", \"Son\", role = \"aut\", email = \"hson@uw.edu\"),\nperson(\"Adam\", \"Elder\", role = \"aut\", email = \"eldera3@uw.edu\"),\nperson(\"Tao\", \"Yang\", role = \"aut\", email = \"tyang23@fredhutch.org\"),\nperson(\"Zonglin\", \"He\", role = \"aut\", email = \"nkhezl@gmail.com\"),\nperson(\"Simone\", \"Giannerini\", role = \"aut\", email = \"simone.giannerini@unibo.it\")\n)",
  "VignetteBuilder": "R.rsp",
  "Description": "Threshold regression models are also called two-phase\nregression, broken-stick regression, split-point regression,\nstructural change models, and regression kink models, with and\nwithout interaction terms. Methods for both continuous and\ndiscontinuous threshold models are included, but the support\nfor the former is much greater. This package is described in\nFong, Huang, Gilbert and Permar (2017)\n<DOI:10.1186/s12859-017-1863-x> and the package vignette.",
  "License": "GPL (>= 2)",
  "NeedsCompilation": "yes",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://youyifong.r-universe.dev",
  "Date/Publication": "2026-06-04 20:15:22 UTC",
  "RemoteUrl": "https://github.com/youyifong/chngpt",
  "RemoteRef": "HEAD",
  "RemoteSha": "092458daacb50f0b04f1184c75827aebd40f4e2f",
  "Packaged": {
    "Date": "2026-06-04 21:32:23 UTC",
    "User": "root"
  },
  "Author": "Youyi Fong [cre],\nQianqian Chen [aut],\nShuangcheng Hua [aut],\nHyunju Son [aut],\nAdam Elder [aut],\nTao Yang [aut],\nZonglin He [aut],\nSimone Giannerini [aut]",
  "Maintainer": "Youyi Fong <youyifong@gmail.com>",
  "MD5sum": "ff0ee5db8e8be8ac806565088bbd939f",
  "_user": "youyifong",
  "_type": "src",
  "_file": "chngpt_2024.11-15.tar.gz",
  "_fileid": "8674b66e51a755f55463d92b5594a0183e6f0be3292d6c7c7b27d3304fd6a701",
  "_filesize": 540974,
  "_sha256": "8674b66e51a755f55463d92b5594a0183e6f0be3292d6c7c7b27d3304fd6a701",
  "_created": "2026-06-04T21:32:23.000Z",
  "_published": "2026-06-04T21:39:13.270Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79619636684,
      "time": 201,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7423593278"
    },
    {
      "job": 79619636700,
      "time": 240,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7423603973"
    },
    {
      "job": 79619636699,
      "time": 227,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423600964"
    },
    {
      "job": 79619636689,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423590635"
    },
    {
      "job": 79619636670,
      "time": 139,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7423573637"
    },
    {
      "job": 79619636674,
      "time": 343,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7423635036"
    },
    {
      "job": 79619636685,
      "time": 179,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423585325"
    },
    {
      "job": 79619636681,
      "time": 269,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423612102"
    },
    {
      "job": 79619082309,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423530476"
    },
    {
      "job": 79619636655,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423568423"
    },
    {
      "job": 79619636669,
      "time": 203,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7423593205"
    },
    {
      "job": 79619636654,
      "time": 218,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7423597263"
    },
    {
      "job": 79619636658,
      "time": 208,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7423594325"
    }
  ],
  "_buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/youyifong/chngpt",
  "_commit": {
    "id": "092458daacb50f0b04f1184c75827aebd40f4e2f",
    "author": "Youyi Fong <youyifong@gmail.com>",
    "committer": "Youyi Fong <youyifong@gmail.com>",
    "message": "Update chngpt-vignette.pdf\n",
    "time": 1780604122
  },
  "_maintainer": {
    "name": "Youyi Fong",
    "email": "youyifong@gmail.com",
    "login": "youyifong",
    "description": "",
    "uuid": 29523631
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "kyotil",
      "version": ">= 2020.10-12",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "RhpcBLASctl",
      "role": "Imports"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "RUnit",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    }
  ],
  "_owner": "youyifong",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "youyifong",
      "count": 47,
      "uuid": 29523631
    }
  ],
  "_userbio": {
    "uuid": 29523631,
    "type": "user",
    "name": "Youyi Fong"
  },
  "_downloads": {
    "count": 1143,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/chngpt"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/youyifong/chngpt",
  "_searchresults": 65,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/chngpt.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/youyifong/chngpt",
  "_realowner": "youyifong",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-1",
      "date": "2013-09-09"
    },
    {
      "version": "0.1-2",
      "date": "2013-10-18"
    },
    {
      "version": "2014.3-5",
      "date": "2014-03-10"
    },
    {
      "version": "2014.5-29",
      "date": "2014-05-29"
    },
    {
      "version": "2014.12-2",
      "date": "2014-12-05"
    },
    {
      "version": "2015.9-5",
      "date": "2015-09-09"
    },
    {
      "version": "2016.7-9",
      "date": "2016-07-10"
    },
    {
      "version": "2016.7-31",
      "date": "2016-07-31"
    },
    {
      "version": "2017.08-28",
      "date": "2017-08-28"
    },
    {
      "version": "2017.10-9",
      "date": "2017-10-09"
    },
    {
      "version": "2017.12-3",
      "date": "2017-12-03"
    },
    {
      "version": "2017.12-26",
      "date": "2018-01-03"
    },
    {
      "version": "2018.1-3",
      "date": "2018-01-04"
    },
    {
      "version": "2018.3-20",
      "date": "2018-03-20"
    },
    {
      "version": "2018.3-29",
      "date": "2018-03-29"
    },
    {
      "version": "2018.5-2",
      "date": "2018-05-02"
    },
    {
      "version": "2018.6-2",
      "date": "2018-06-01"
    },
    {
      "version": "2018.7-25",
      "date": "2018-08-07"
    },
    {
      "version": "2018.10-17",
      "date": "2018-10-30"
    },
    {
      "version": "2019.3-6",
      "date": "2019-03-08"
    },
    {
      "version": "2019.3-8",
      "date": "2019-03-08"
    },
    {
      "version": "2019.3-12",
      "date": "2019-03-13"
    },
    {
      "version": "2019.8-28",
      "date": "2019-08-29"
    },
    {
      "version": "2019.9-2",
      "date": "2019-09-02"
    },
    {
      "version": "2019.11-21",
      "date": "2019-11-21"
    },
    {
      "version": "2019.11-26",
      "date": "2019-11-28"
    },
    {
      "version": "2019.11-30",
      "date": "2019-12-02"
    },
    {
      "version": "2020.2-26",
      "date": "2020-02-27"
    },
    {
      "version": "2020.5-13",
      "date": "2020-05-13"
    },
    {
      "version": "2020.5-21",
      "date": "2020-05-22"
    },
    {
      "version": "2020.8-29",
      "date": "2020-08-30"
    },
    {
      "version": "2020.10-12",
      "date": "2020-10-14"
    },
    {
      "version": "2021.5-12",
      "date": "2021-05-12"
    },
    {
      "version": "2022.3-15",
      "date": "2022-03-16"
    },
    {
      "version": "2022.4-6",
      "date": "2022-04-07"
    },
    {
      "version": "2023.1-30",
      "date": "2023-01-31"
    },
    {
      "version": "2023.11-28",
      "date": "2023-11-29"
    },
    {
      "version": "2023.11-29",
      "date": "2023-12-05"
    },
    {
      "version": "2024.11-15",
      "date": "2024-11-14"
    }
  ],
  "_exports": [
    "antoch.test",
    "chngpt.test",
    "chngptm",
    "chngptm.xy",
    "convert.coef",
    "double.hinge",
    "hinge.test",
    "lincomb",
    "performance.unit.test",
    "plot.chngpt.test",
    "plot.chngptm",
    "plot.double.hinge",
    "predictx",
    "print.chngptm",
    "sim.chngpt",
    "sim.hinge",
    "sim.my",
    "sim.pastor",
    "sim.threephase",
    "sim.twophase.ran.inte",
    "threshold.func"
  ],
  "_datasets": [
    {
      "name": "coef.0.ls",
      "title": "Simulation Study Parameters",
      "object": "coef.0.ls",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "dat.mtct",
      "title": "An Example Dataset",
      "object": "dat.mtct",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "birth",
        "NAb_SF162LS"
      ],
      "rows": 236,
      "table": true,
      "tojson": true
    },
    {
      "name": "dat.mtct.2",
      "title": "An Example Dataset",
      "object": "dat.mtct",
      "class": [
        "data.frame"
      ],
      "fields": [
        "NAb_score",
        "V3_BioV3B"
      ],
      "rows": 248,
      "table": true,
      "tojson": true
    },
    {
      "name": "lidar",
      "title": "Light Detection and Ranging Data",
      "object": "lidar",
      "class": [
        "data.frame"
      ],
      "fields": [
        "range",
        "logratio"
      ],
      "rows": 221,
      "table": true,
      "tojson": true
    },
    {
      "name": "nutrition",
      "title": "Infant Nutrition Data",
      "object": "nutrition",
      "class": [
        "data.frame"
      ],
      "fields": [
        "woh",
        "age"
      ],
      "rows": 72,
      "table": true,
      "tojson": true
    },
    {
      "name": "sim.alphas",
      "title": "Simulation Parameters",
      "object": "sim.alphas",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "chngpt",
      "title": "chngpt Package",
      "topics": [
        "chngpt"
      ]
    },
    {
      "page": "chngpt.test",
      "title": "Threshold Model Hypothesis Testing",
      "topics": [
        "antoch.test",
        "chngpt.test",
        "plot.chngpt.test"
      ]
    },
    {
      "page": "chngptm",
      "title": "Threshold Models Estimation",
      "topics": [
        "AIC.chngptm",
        "chngptm",
        "chngptm.xy",
        "coef.chngptm",
        "lincomb",
        "logLik.chngptm",
        "plot.chngptm",
        "predict.chngptm",
        "print.chngptm",
        "residuals.chngptm",
        "summary.chngptm",
        "vcov.chngptm"
      ]
    },
    {
      "page": "coef.0.ls",
      "title": "Simulation Study Parameters",
      "topics": [
        "coef.0.ls"
      ]
    },
    {
      "page": "convert.coef",
      "title": "Helper functions",
      "topics": [
        "convert.coef",
        "predictx",
        "threshold.func"
      ]
    },
    {
      "page": "dat.mtct",
      "title": "An Example Dataset",
      "topics": [
        "dat.mtct"
      ]
    },
    {
      "page": "dat.mtct.2",
      "title": "An Example Dataset",
      "topics": [
        "dat.mtct.2"
      ]
    },
    {
      "page": "double.hinge",
      "title": "Fit Double Hinge Models",
      "topics": [
        "double.hinge",
        "fitted.double.hinge",
        "plot.double.hinge",
        "residuals.double.hinge"
      ]
    },
    {
      "page": "hinge.test",
      "title": "A non-nested hypothesis testing problem for threshold regression models",
      "topics": [
        "hinge.test"
      ]
    },
    {
      "page": "lidar",
      "title": "Light Detection and Ranging Data",
      "topics": [
        "lidar"
      ]
    },
    {
      "page": "nutrition",
      "title": "Infant Nutrition Data",
      "topics": [
        "nutrition"
      ]
    },
    {
      "page": "performance.unit.test",
      "title": "Perform unit testing for performance evaluation.",
      "topics": [
        "performance.unit.test"
      ]
    },
    {
      "page": "sim.alphas",
      "title": "Simulation Parameters",
      "topics": [
        "sim.alphas"
      ]
    },
    {
      "page": "sim.chngpt",
      "title": "Simulation Function",
      "topics": [
        "sim.chngpt",
        "sim.threephase",
        "sim.twophase.ran.inte"
      ]
    },
    {
      "page": "sim.hinge",
      "title": "Simulation function",
      "topics": [
        "sim.hinge"
      ]
    },
    {
      "page": "sim.my",
      "title": "Simulate data",
      "topics": [
        "sim.my"
      ]
    },
    {
      "page": "sim.pastor",
      "title": "Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003",
      "topics": [
        "sim.pastor"
      ]
    }
  ],
  "_readme": "https://github.com/youyifong/chngpt/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "kyotil",
    "lattice",
    "lme4",
    "MASS",
    "Matrix",
    "minqa",
    "nlme",
    "nloptr",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "RhpcBLASctl",
    "rlang",
    "survival"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "chngpt-vignette.pdf.asis",
      "filename": "chngpt-vignette.pdf",
      "title": "Fitting Threshold Regression Models Using chngpt",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2021-02-04 23:01:16",
      "modified": "2021-02-04 23:01:16",
      "commits": 1
    }
  ],
  "_score": 6.001293355533144,
  "_indexed": true,
  "_nocasepkg": "chngpt",
  "_universes": [
    "youyifong"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2024.11-15",
      "date": "2026-06-04T21:35:04.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "66f0bbae8f766c7747b7437761361cf14ac54ec7ae9af5d85f2a5b14c97cc7c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2024.11-15",
      "date": "2026-06-04T21:35:31.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "258323b40627547e107bd619462bc02a561f8280c390f636a2f2c19ad08460ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2024.11-15",
      "date": "2026-06-04T21:35:28.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "9d3524b660020be68fd6c7199407aee6680291da16aafc102265458b5ea4dd99",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "e72b61aefc2388b8564a2d5d88515e4fc5204116762c3e523d8309324ae40faf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:23.000Z",
      "arch": "aarch64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "bb4b34bbb53128df503c98849c57a3c1a22616e1b965af8cce44e1a2f96a7459",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2024.11-15",
      "date": "2026-06-04T21:36:13.000Z",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "b51cb39219584be71c426b4bee56eae567d089e27301468e7e3d57aebccd662a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:37.000Z",
      "arch": "aarch64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "a3c7a75f6e674127cad8d89c9c1e2b06998f46bd1023015240af53e21459c444",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2024.11-15",
      "date": "2026-06-04T21:35:16.000Z",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "b47709162e51b2040edd4d5c24d5bc0c8c2ccedf0a7b45a3f1bf74cbaac60f39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:49.000Z",
      "arch": "emscripten",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "5cc3829b47d3e2b6a2eb70ec3577dcd7b38b77eb475c857e27c3d646c2cd9dd9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:04.000Z",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "f6b6f5964cc683f0f66f78a34badff035d4d01d599d9701205b04c9cd84dc308",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2024.11-15",
      "date": "2026-06-04T21:33:59.000Z",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "8728e8634ddc3d6de67d156cd5b333a033f94a8e749b8658d168737d4a2d9aed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2024.11-15",
      "date": "2026-06-04T21:34:08.000Z",
      "arch": "x86_64",
      "commit": "092458daacb50f0b04f1184c75827aebd40f4e2f",
      "fileid": "05b469c03019a26829ed75b7956a1eaec669f36720e0aed7b272b2f46b9d0885",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/youyifong/actions/runs/26980733893"
    }
  ]
}