View source: R/get_marginal_distributions.R
get_marginal_distributions | R Documentation |
Generate Marginal Distributions from a given data frame with options to specify which variables to use.
get_marginal_distributions(df, variables = c(), print = FALSE)
df |
Data frame to get the marginal distributions from |
variables |
(Optional) variable (columns) to select, Default: c() |
print |
Whether to print the marginal distributions to the console, Default: FALSE |
A function to generate marginal distributions from a given data frame, depending on the variable type the marginals will differ, for binary variables a mean and number of missing is generated for continuous variables, they are first transformed and both mean and sd of the transformed variables are stored along with the quantile mapping for back transformation. For categorical variables, the number of each category is stored, missing values are categorise as "missing".
A list of marginal distributions of an S3 RESIDE Class
export_marginal_distributions
marginal_distributions <- get_marginal_distributions(
IST,
variables <- c(
"SEX",
"AGE",
"ID14",
"RSBP",
"RATRIAL"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.