Package: chngpt 2024.11-15

chngpt: Estimation and Hypothesis Testing for Threshold Regression

Threshold regression models are also called two-phase regression, broken-stick regression, split-point regression, structural change models, and regression kink models, with and without interaction terms. Methods for both continuous and discontinuous threshold models are included, but the support for the former is much greater. This package is described in Fong, Huang, Gilbert and Permar (2017) <doi:10.1186/s12859-017-1863-x> and the package vignette.

Authors:Youyi Fong [cre], Qianqian Chen [aut], Shuangcheng Hua [aut], Hyunju Son [aut], Adam Elder [aut], Tao Yang [aut], Zonglin He [aut], Simone Giannerini [aut]

chngpt_2024.11-15.tar.gz
chngpt_2024.11-15.zip(r-4.5)chngpt_2024.11-15.zip(r-4.4)chngpt_2024.11-15.zip(r-4.3)
chngpt_2024.11-15.tgz(r-4.4-x86_64)chngpt_2024.11-15.tgz(r-4.4-arm64)chngpt_2024.11-15.tgz(r-4.3-x86_64)chngpt_2024.11-15.tgz(r-4.3-arm64)
chngpt_2024.11-15.tar.gz(r-4.5-noble)chngpt_2024.11-15.tar.gz(r-4.4-noble)
chngpt_2024.11-15.tgz(r-4.4-emscripten)chngpt_2024.11-15.tgz(r-4.3-emscripten)
chngpt.pdf |chngpt.html
chngpt/json (API)

# Install 'chngpt' in R:
install.packages('chngpt', repos = c('https://youyifong.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/youyifong/chngpt/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

5.69 score 1 stars 2 packages 55 scripts 930 downloads 3 mentions 21 exports 13 dependencies

Last updated 8 days agofrom:8a00a31eb9. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 12 2024
R-4.5-win-x86_64OKNov 12 2024
R-4.5-linux-x86_64OKNov 12 2024
R-4.4-win-x86_64OKNov 12 2024
R-4.4-mac-x86_64OKNov 12 2024
R-4.4-mac-aarch64OKNov 12 2024
R-4.3-win-x86_64OKNov 12 2024
R-4.3-mac-x86_64OKNov 12 2024
R-4.3-mac-aarch64OKNov 12 2024

Exports:antoch.testchngpt.testchngptmchngptm.xyconvert.coefdouble.hingehinge.testlincombperformance.unit.testplot.chngpt.testplot.chngptmplot.double.hingepredictxprint.chngptmsim.chngptsim.hingesim.mysim.pastorsim.threephasesim.twophase.ran.intethreshold.func

Dependencies:bootkyotillatticelme4MASSMatrixminqanlmenloptrRcppRcppEigenRhpcBLASctlsurvival

Fitting Threshold Regression Models Using chngpt

Rendered fromchngpt-vignette.pdf.asisusingR.rsp::asison Nov 12 2024.

Last update: 2021-02-04
Started: 2021-02-04

Readme and manuals

Help Manual

Help pageTopics
chngpt Packagechngpt
Threshold Model Hypothesis Testingantoch.test chngpt.test plot.chngpt.test
Threshold Models EstimationAIC.chngptm chngptm chngptm.xy coef.chngptm lincomb logLik.chngptm plot.chngptm predict.chngptm print.chngptm residuals.chngptm summary.chngptm vcov.chngptm
Simulation Study Parameterscoef.0.ls
Helper functionsconvert.coef predictx threshold.func
An Example Datasetdat.mtct
An Example Datasetdat.mtct.2
Fit Double Hinge Modelsdouble.hinge fitted.double.hinge plot.double.hinge residuals.double.hinge
A non-nested hypothesis testing problem for threshold regression modelshinge.test
Light Detection and Ranging Datalidar
Infant Nutrition Datanutrition
Perform unit testing for performance evaluation.performance.unit.test
Simulation Parameterssim.alphas
Simulation Functionsim.chngpt sim.threephase sim.twophase.ran.inte
Simulation functionsim.hinge
Simulate datasim.my
Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003sim.pastor