plot_coef_par_trends.Rd
This function generates coefplots or iplots based on fixest outputs, allowing the user to visualize interaction coefficients with ease.
Data frame containing the data to be used in the model.
Named list of dependent variables to model and their respective labels.
Name of the time variable in the data.
Name of the treatment status variable.
Name of the unit identification variable.
Type of plot to generate. Either "coefplot" or "iplot".
Logical indicating whether to combine plots for all dependent variables.
Position of the legend on the plot.
Title for the legend.
List of additional arguments to customize the legend.
List of additional arguments to customize the plot.
A plot visualizing interaction coefficients.
if (FALSE) {
library(fixest)
data("base_did")
# Sample call to the function:
plot_coef_par_trends(
data = base_did,
dependent_vars = c(y = "Outcome 1", x1 = "Outcome 2"),
time_var = "period",
unit_treatment_status = "treat",
unit_id_var = "id",
plot_type = "coefplot",
combined_plot = TRUE,
plot_args = list(main = "Interaction coefficients Plot"),
legend_title = "Metrics",
legend_position = "bottomleft"
)
plot_coef_par_trends(
data = base_did,
dependent_vars = c(y = "Outcome 1", x1 = "Outcome 2"),
time_var = "period",
unit_treatment_status = "treat",
unit_id_var = "id",
plot_type = "coefplot",
combined_plot = FALSE
)
}