The R Package threg to Implement Threshold Regression Models
Tao Xiao,
G. A. Whitmore,
Xin He and
Mei-Ling Ting Lee
Journal of Statistical Software, 2015, vol. 066, issue i08
Abstract:
This paper introduces the R package threg, which implements the estimation procedure of a threshold regression model, which is based on the first-hitting-time of a boundary by the sample path of a Wiener diffusion process. The threshold regression methodology is well suited to applications involving survival and time-to-event data, and serves as an important alternative to the Cox proportional hazards model.This new package includes four functions: threg, and the methods hr, predict and plot for ‘threg’ objects returned by threg. The threg function is the model-fitting function which is used to calculate regression coefficient estimates, asymptotic standard errors and p values. The hr method for ‘threg’ objects is the hazard-ratio calculation function which provides the estimates of hazard ratios at selected time points for specified scenarios (based on given categories or value settings of covariates). The predict method for ‘threg objects is used for prediction. And the plot method for ‘threg’ objects provides plots for curves of estimated hazard functions, survival functions and probability density functions of the first-hitting-time; function curves corresponding to different scenarios can be overlaid in the same plot for comparison to give additional research insights.
Date: 2015-08-27
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v066i08/v66i08.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... 8/threg_1.0.3.tar.gz
https://www.jstatsoft.org/index.php/jss/article/do ... ile/v066i08/v66i08.R
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:066:i08
DOI: 10.18637/jss.v066.i08
Access Statistics for this article
Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis
More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum (baum@bc.edu).