Skip to contents

Fit joinpoint models

Fit joinpoint models to one or more trend series, and control the grid search, the model selection and the confidence intervals.

joinpoint()
Fit joinpoint regression models
jp_control()
Control settings for joinpoint fitting

Trend estimates

Segment APCs, AAPCs and joinpoint locations with their confidence intervals, model selection statistics, regression coefficients and a table for a manuscript.

apc() aapc() joinpoints()
Trend estimates from a joinpoint fit
jp_table()
Publication table of trends
model_selection()
Model selection results
model_estimates()
Model estimates
jump_estimates()
Jump and comparability ratio estimates

Model methods

Standard methods for fitted joinpoint models.

as.data.frame(<joinpoint>)
Observed and modeled values
predict(<joinpoint>)
Predictions from a joinpoint fit
coef(<joinpoint>) vcov(<joinpoint>)
Coefficients and their covariance

Tests of parallelism and coincidence, direct age adjustment and clustering of contiguous age groups.

jp_compare()
Pairwise comparison of joinpoint trends
age_adjust()
Directly age adjusted rates
jp_cluster()
Multi-group clustering of age specific trends

Graphics

Publication quality figures built with ggplot2.

autoplot(<joinpoint>) plot(<joinpoint>)
Plot a joinpoint fit
plot_apc() plot_aapc()
Plot segment APCs and AAPCs
plot_models()
Plot all fitted models
plot_selection()
Plot model selection
plot_residuals()
Residual diagnostics
autoplot(<jp_comparison>)
Plot a pairwise comparison
theme_joinpoint() scale_color_joinpoint() scale_fill_joinpoint()
Theme and color scales for joinpoint graphics
jp_interactive()
Interactive joinpoint graphics

Export and reports

Tables, figures and interactive graphics saved for manuscripts, reports and web pages, complete reports, and R Markdown and Quarto output.

jp_save()
Save a table, figure or report
jp_report()
Joinpoint report as a document, R Markdown or Quarto file
jp_export()
Export joinpoint results
knit_print(<joinpoint>)
Printing joinpoint fits in R Markdown and Quarto

Data sets

us_mortality
Age adjusted death rates for six causes, United States 1900 to 1998
ontario_bmi
Prepregnancy body mass index in Ontario, 2012 to 2021
std_populations
Standard populations for age adjustment