dssa: Perform Dynamic Shift share Analysis

Description Usage Arguments Value Examples

View source: R/dssa.R

Description

Perform Dynamic Shift share Analysis

Usage

1
2
dssa(df, y.var, region.var, year.var, sector.var, gregion.id, sector.id,
  start.year, end.year)

Arguments

df

A dataframe

y.var

The dependent variable (e.g., employment or growth)

region.var

A factor variable that defines regions

year.var

A number specifying the year variable

sector.var

A factor variable that defines sectors

gregion.id

A string that identifies the greater region (e.g., national employment)

sector.id

A string that identifies the total sector

start.year

A number specifying start year

end.year

A number specifying end year

Value

A dataframe containing the National Growth effect (NSi), the Industry Mix effect (IMi), and the Local Share effect (RSi) by region and occupation

Examples

1
2
3
4
data('usregions')
my.dssa <- dssa(usregions, y.var = 'TOT_EMP' ,region.var = 'ST', sector.var = 'OCC_TITLE',
  gregion.id = 'US', year.var = 'Year', sector.id = 'All Occupations',
  start.year = 2013, end.year = 2015)

DSoudis/shiftshare documentation built on May 20, 2019, 2:21 p.m.