Leontief Extraction and Comparison Workflow Tools
paper_tools.RdUtilities for exposing Leontief matrices, preparing comparison tables, and reproducing the comparison, plotting, and interpretation workflow described in the package documentation and companion paper context.
Usage
extract_leontief_matrices(results, matrix = c("A", "L"), format = c("list", "long", "wide"))
prepare_sube_comparison(
leontief,
models,
measure = c("multiplier", "elasticity"),
aggregate_years = TRUE,
variables = c("GO", "VA", "EMP", "CO2"),
apply_paper_filters = TRUE
)
plot_paper_comparison(
data,
kind = c("by_country", "by_product", "density"),
measure = c("multiplier", "elasticity"),
variables = c("GO", "VA", "EMP"),
type = NULL,
label_outliers = TRUE
)
plot_paper_regression(
data,
method = c("between", "pooled", "ols"),
measure = c("multiplier", "elasticity"),
variables = c("GO", "VA", "EMP"),
include_ci = TRUE
)
plot_paper_interval_ranges(models, by = c("country", "product"), variables = c("GO", "VA", "EMP"))Arguments
- results
A
sube_resultsobject.- matrix
Which Leontief-related matrix to extract.
- format
Output format.
- leontief
A
sube_resultsobject.- models
A
sube_modelsobject.- measure
Comparison measure.
- aggregate_years
Whether to average yearly Leontief and OLS results.
- variables
Variables to include.
- apply_paper_filters
Whether to apply the paper exclusion rules.
- data
A tidy comparison table from
prepare_sube_comparison().- kind
Paper-style plot family.
- type
Comparison types to plot.
- label_outliers
Whether to annotate boxplot outliers.
- method
Model method to compare against Leontief.
- include_ci
Whether to show prediction intervals.
- by
Orientation for interval-range plots.