Man pages for MAPCtools
Multivariate Age-Period-Cohort (MAPC) Modeling for Health Data

abinomialAggregate binomial data
add_APC_by_matchAdd 1-indexed age, period and cohort indices via match()
add_cohort_columnAdd cohort column to data frame
add_cohort_indexAdd cohort column to data frame
agaussianAggregate Gaussian data
aggregate_dfAggregate data across an entire data frame using sufficient...
aggregate_grouped_dfAggregate grouped data using aggregate_df
amultinomialAggregate multinomial data. Used in 'aggregate_df'.
as.APC.dfAdd 1-indexed APC columns to data frame, handling numeric or...
as.APC.NA.dfCreate NA structure across age, period and cohort groups...
binomial_aggregatorAggregate binomial data
check_cols_existCheck if a set of columns is missing from a data frame. For...
clampClamp a numeric value within bounds
dynamic_pretty_breaksCompute dynamic pretty breaks for continuous x-axis
dynamic_pretty_discrete_breaksCompute dynamic pretty breaks for discrete x-axis
expected_groupsFind expected groups based on distinct values across a set of...
fit_all_MAPCFit all configurations of MAPC models using INLA
fit_MAPCFit a multivariable age-period-cohort model
gaussian_aggregatorAggregate Gaussian data
generate_apc_lincombsGenerate Age-Period-Cohort Linear Combinations for INLA
generate_MAPC_formulaGenerate MAPC formula for INLA
longest_runFunction for finding longest consecutive run of non-missing...
model_selection_criteria_tableMake a table of model fit scores
multinomial_aggregatorAggregate multinomial data (No changes needed here)
number_of_groupsCount number of groups across a set of variables in a data...
number_of_strataCount number of groups across a set of variables in a data...
plot_binned_countsPlot counts of observations across bins of a numeric...
plot_counts_1DPlot counts of observations across a single variable,...
plot_counts_2DPlot counts of observations across two dimensions, optionally...
plot_counts_with_meanPlot heatmap of observation counts with mean overlay,...
plot_lincombsPlot Linear Combinations of Age-Period-Cohort Effects by...
plot_mean_response_1DPlot mean of a response variable across a single variable,...
plot_mean_response_2DPlot mean of a response variable across two dimensions,...
plot_missing_dataPlot Missing Group Combinations
plot_model_selection_criteriaMake a plot of model fit scores
plot_time_effectPlot time effects with uncertainty ribbons
resolve_columnHelper for evaluating column names, strings, or...
toy_dataSynthetic Age-Period-Cohort Dataset
validate_lincombs_against_formulaValidate lincomb terms against an INLA formula
MAPCtools documentation built on June 25, 2025, 5:09 p.m.