setSizeClass: Set Size Class based on a Quantitative Variable

Description Usage Arguments Author(s)

Description

This function is used in survey based research to create size groups based on a quantitative variable like the number of employees. Users can specify multiple thresholds that may vary over groups.

Usage

1
2
3
  setSizeClass(df, thresholdList, sectorColumn = "all",
    resultColumn = "sClass", size = "BESCHAEFTIGTE",
    minClassLabel = "S")

Arguments

df

data.frame that contains the basic dataset

thresholdList

list of thresholds, list elements can be vectors if different groups have different thresholds

sectorColumn

character string indicating the column that specifies the groups at across which thresholds could be different. Default is 'all' meaning all groups have the same thresholds.

resultColumn

character string containing the name of the resulting column

size

character string containing the name of the quantitative variable.

Author(s)

Matthias Bannert


mbannert/gateveys documentation built on May 21, 2019, 2:23 p.m.