subgroup_regression: Select the subgroup of the data and perform regression...

Description Usage Arguments Value Author(s)

View source: R/subgroup_regression.R

Description

Heterogeneity analysis

Usage

1
2
subgroup_regression(condition, df, model, cluster = NULL,
  event_plot = FALSE, xlab = NULL, ylab = NULL)

Arguments

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

Value

A list of regression result (and an event plot if specified)

Author(s)

Jiacheng He


JiachengHe/MSP documentation built on May 17, 2019, 6:20 p.m.