Learn R Programming

did (version 1.2.3)

compute.aggte: compute.aggte

Description

does the heavy lifting on computing aggregated group-time average treatment effects

Usage

compute.aggte(
  flist,
  tlist,
  group,
  t,
  att,
  first.treat.name,
  inffunc1,
  n,
  clustervars,
  dta,
  idname,
  bstrap,
  biters
)

Arguments

first.treat.name

The name of the variable in data that contains the first period when a particular observation is treated. This should be a positive number for all observations in treated groups. It should be 0 for observations in the untreated group.

clustervars

A vector of variables to cluster on. At most, there can be two variables (otherwise will throw an error) and one of these must be the same as idname which allows for clustering at the individual level.

idname

The individual (cross-sectional unit) id name

bstrap

Boolean for whether or not to compute standard errors using the multiplier boostrap. If standard errors are clustered, then one must set bstrap=TRUE.

biters

The number of boostrap iterations to use. The default is 100, and this is only applicable if bstrap=TRUE.

Value

AGGTE object