gen_fst: Generate fs_t

View source: R/gen_fst.R

gen_fstR Documentation

Generate fs_t

Description

Generate fs_t

Usage

gen_fst(dt, tm, stgyr = 2014:2016)

Arguments

dt

A data.frame.

tm

A coloumn name of the time variable.

stgyr

A numerica vector about staggered years. For example, 2014:2016, the function would generate f2014,f2015,f2016 three dummy variables.

Value

A data.frame including time dummy variables.

Examples

data(stg6)
gen_fst(stg6, tm = 'year', stgyr = 2014:2016)


common2016/didWD documentation built on April 24, 2022, 12:12 a.m.