Package: chngpt 2023.4-14

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_2023.4-14.tar.gz
chngpt_2023.4-14.zip(r-4.5)chngpt_2023.4-14.zip(r-4.4)chngpt_2023.4-14.zip(r-4.3)
chngpt_2023.4-14.tgz(r-4.4-x86_64)chngpt_2023.4-14.tgz(r-4.4-arm64)chngpt_2023.4-14.tgz(r-4.3-x86_64)chngpt_2023.4-14.tgz(r-4.3-arm64)
chngpt_2023.4-14.tar.gz(r-4.5-noble)chngpt_2023.4-14.tar.gz(r-4.4-noble)
chngpt_2023.4-14.tgz(r-4.4-emscripten)chngpt_2023.4-14.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:

21 exports 1 stars 1.85 score 13 dependencies 2 dependents 3 mentions 53 scripts 998 downloads

Last updated 1 years agofrom:f690b06962. Checks:OK: 1 WARNING: 4 ERROR: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 06 2024
R-4.5-win-x86_64WARNINGSep 06 2024
R-4.5-linux-x86_64WARNINGSep 06 2024
R-4.4-win-x86_64WARNINGSep 06 2024
R-4.4-mac-x86_64ERRORSep 06 2024
R-4.4-mac-aarch64ERRORSep 06 2024
R-4.3-win-x86_64WARNINGSep 06 2024
R-4.3-mac-x86_64ERRORSep 06 2024
R-4.3-mac-aarch64ERRORSep 06 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 Sep 06 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