AddIndicators: Returns a data.frame with appropriate pre/post indicators for...

Description Usage Arguments Value

Description

Returns a data.frame with appropriate pre/post indicators for a change in some indepdent variable.

Usage

1
2
AddIndicators(df, num.periods.post, num.periods.pre, independent.variable,
  grouping.variable, epsilon = 0.01)

Arguments

df

data frame

num.periods.post

how many post-change indicators are needed

num.periods.pre

how many pre-change indicators are needed

independent.variable

the indepenent variable

grouping.variable

the experimental units (e.g., states, cities, people)

epsilon

minimally detectable change in var.name

Value

A dataframe with indicators added.


johnjosephhorton/rAutor documentation built on May 26, 2019, 5:41 p.m.