Main Fitting FunctionsThe main function to fit the Cox-non proportional hazards model |
|
---|---|
fit a Cox non-proportional hazards model |
|
fit a Cox non-proportional hazards model with P-spline or Smoothing-spline, with penalization tuning parameter chosen by information criteria or cross-validation |
|
fit a cross-validated Cox non-proportional hazards model with P-spline or Smoothing-spline where penalization tuning parameter is provided by cross-validation |
|
Information CriteriaCalculating the Information Criteria to select the tunning paratmeter for the penalized methods |
|
calculating information criteria from a |
|
Tests of Cox-non proportional hazards model |
|
testing the proportional hazards assumption from a |
|
testing the significance of the covariates from a |
|
testing the significance of the covariates from a |
|
Helper functions |
|
helper function to get time-varying coefficients |
|
get confidence intervals of time-varying coefficients from a fitted object |
|
plotting results from a fitted |
|
plotting results from a fitted |
|
calculating baseline hazard and baseline cumulative hazard using the result from a |
|
plotting the baseline hazard |
|
Package data sets |
|
example data with 2000 observations of 2 continuous variables |
|
example data with 2000 observations of 2 binary variables |
|
example data for stratified model illustration |
|
Study to Understand Prognoses Preferences Outcomes and Risks of Treatment |