Description Usage Arguments Value Author(s)
View source: R/subgroup_regression.R
Heterogeneity analysis
1 2 | subgroup_regression(condition, df, model, cluster = NULL,
event_plot = FALSE, xlab = NULL, ylab = NULL)
|
condition |
The condition to subset the data. A character. |
df |
The data frame that contains the regression variables |
model |
The regression model |
cluster |
Whether to cluster the standard error |
event_plot |
Whether to generate the event study plot |
xlab |
The xlabel of the event plot |
ylab |
The ylabel of the event plot |
A list of regression result (and an event plot if specified)
Jiacheng He
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.