trends_test: Creates the data needed to perform the random trends test.

View source: R/trends_test.R

trends_testR Documentation

Creates the data needed to perform the random trends test.

Description

trends_test returns a tibble that is ready for the random trends test.

Usage

trends_test(data, window, cluster_blocks)

Arguments

data

an object/dataframe/tibble.

window

how big the event window is (in weeks)

cluster_blocks

a number for how many days you want clustered together. I usually do 7 for week.

Details

This function creates the event study tibble needed to do analysis in event study framework.

Examples

trends_test(daily_crime,  window = 8, cluster_blocks = 7)


michaeltopper1/ifc documentation built on Jan. 30, 2023, 10:08 a.m.