1. First, you need to install the 'devtools' package. You can skip this step if you have 'devtools' installed in your R. Invoke R and then type
install.packages("devtools")
2. Load the devtools package.
library(devtools)
3. Install "bhm" package with R commond
install_github("statapps/bhm")
"bhm" uses different statistical methods to identify cut-point (thershold parameter) for the biomarker in either generalized linear models or Cox proportional hazards model.
Fang, T., Mackillop, W., Jiang, W., Hildesheim, A., Wacholder, S. and Chen, B. E. (2016). A Bayesian Model for Estimating a Risk Window: Methods and Application. Manuscript submitted to: Computational Statistics and Data Analysis.
coxph,
glm,
survival
# fit = bhm(y~biomarker+treatment)
Run the code above in your browser using DataLab