Inverse_transformation_variables {modgo} | R Documentation |
Inverse transform variables
Description
This function is used internally by modgo
. It transforms
all variables to their original scale.
Usage
Inverse_transformation_variables(
data,
df_sim,
variables,
bin_variables,
categ_variables,
count_variables,
n_samples,
generalized_mode,
generalized_mode_lmbds
)
Arguments
data |
a data frame with original variables. |
df_sim |
data frame with transformed variables. |
variables |
variables a character vector indicating which
columns of |
bin_variables |
a character vector listing the binary variables. |
categ_variables |
a character vector listing the ordinal categorical variables. |
count_variables |
a character vector listing the count as a sub sub category of categorical variables. Count variables should be part of categorical variables vector. Count variables are treated differently when using gldex to simulate them. |
n_samples |
Number of rows of each simulated data set. Default is
the number of rows of |
generalized_mode |
A logical value indicating if generalized lambda/poisson distributions or set up thresholds will be used to generate the simulated values |
generalized_mode_lmbds |
A matrix that contains lambdas values for each of the variables of the data set to be used for either Generalized Lambda Distribution Generalized Poisson Distribution or setting up thresholds |
Value
A data frame with all inverse transformed values.
Author(s)
Francisco M. Ojeda, George Koliopanos