set_data {cccm} | R Documentation |
Data prep
Description
Data prep
Usage
set_data(raw_data, categorical_columns, weights_column, debt_column)
Arguments
raw_data |
a data set of credibility. |
categorical_columns |
categorical column of data set. |
weights_column |
weights column of data set. |
debt_column |
credit debt column of data set. |
Value
This function returns a tibble as prepared_data by using raw_data. Adds new columns to raw data as weighted_obs, group_average_weights, variance_column.
Examples
raw_data <- debt
categorical_columns <- c(1,2)
weights_column <- 3
debt_column <- 4
prepared_data <- set_data(raw_data, categorical_columns, weights_column, debt_column)
[Package cccm version 0.1.0 Index]