Prepare distinct building blocks, from which the data.frames for the plot-functions can be build by combining them.
prep_data_blocks.Rd
Prepare distinct building blocks, from which the data.frames for the plot-functions can be build by combining them.
Arguments
- data_clean
Input data.frame, that has already been cleaned with
clean_data()
.- sig_niveau
Numeric indicating the border, below which p-values will be considered significant. Defaults to
0.05
.- states
Character vector of the different states (Bundesländer) found in the data.
- sub_groups
Character vector of the different groups found in
grouping_var
.- merging_columns
Columns that won't get a suffix.
Value
prep_data_blocks()
returns a list containing five data.frames which can be used as the building blocks for more specific data.frames needed for the plot()
functions. These data.frames contain distinct information, and can be combined according to the requirements of the respective plots. The returned list includes the data.frames:
noTrend_noComp
contains point estimates for every years.Trend_Comp
contains all trend variables performing some kind of comparison, e.g., state vs. germany.trend_no_comp_data
contains the trend estimates without comparisons.noTrend_noComp_wholeGroup
contains the point estimates of the wholeGroup.Trend_noComp_wholeGroup
contains the trend estimates for the wholeGroup.