View source: R/cross_sectional.R
| cross_sectional_regression | R Documentation |
Regress cumulative abnormal returns (CARs) on firm characteristics to explain cross-sectional variation in event effects. Supports OLS with heteroskedasticity-consistent (HC) standard errors.
cross_sectional_regression(
task,
formula,
data,
car_window = NULL,
robust = TRUE
)
task |
A fitted EventStudyTask with abnormal returns computed. |
formula |
A formula with the response on the left (ignored; CAR is
always the dependent variable) and explanatory variables on the right,
e.g., |
data |
A data frame of firm characteristics. Must contain an
|
car_window |
Two-element integer vector specifying the CAR window
as |
robust |
Logical. If TRUE and the sandwich package is available, compute HC1 robust standard errors. Default TRUE. |
A list with class "es_cross_sectional" containing:
The fitted lm object
Coefficient table with (robust) standard errors
R-squared of the regression
Number of observations
The merged CAR + characteristics data
Other eventstudy-statistics:
ARTTest,
BHARTTest,
BMPTest,
CARTTest,
CSectTTest,
CalendarTimePortfolioTest,
GeneralizedSignTest,
KolariPynnonenTest,
MultiEventStatisticsSet,
PatellZTest,
RankTest,
SignTest,
SingleEventStatisticsSet,
StatisticsSetBase,
TestStatisticBase,
adjust_p_values(),
bootstrap_test(),
car_by_group(),
car_quantiles(),
model_diagnostics(),
pretrend_test(),
simulate_event_study(),
validate_task()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.