car_by_group: Compare CARs Across Groups

View source: R/cross_sectional.R

car_by_groupR Documentation

Compare CARs Across Groups

Description

Performs a t-test (two groups) or ANOVA (3+ groups) to test whether CARs differ significantly across groups.

Usage

car_by_group(task, group_var = "group", car_window = NULL)

Arguments

task

A fitted EventStudyTask.

group_var

Name of the grouping variable. Defaults to "group" (the standard group column in EventStudyTask).

car_window

Optional two-element vector for CAR window.

Value

A list with test results and group-level summary statistics.

See Also

Other eventstudy-statistics: ARTTest, BHARTTest, BMPTest, CARTTest, CSectTTest, CalendarTimePortfolioTest, GeneralizedSignTest, KolariPynnonenTest, MultiEventStatisticsSet, PatellZTest, RankTest, SignTest, SingleEventStatisticsSet, StatisticsSetBase, TestStatisticBase, adjust_p_values(), bootstrap_test(), car_quantiles(), cross_sectional_regression(), model_diagnostics(), pretrend_test(), simulate_event_study(), validate_task()


EventStudy documentation built on Oct. 31, 2026, 1:07 a.m.