Description Usage Arguments Value Examples
View source: R/VariableExplore.r
This function produces a histogram of the independent variable, summary statics, missing data information, and estimates of the trend between it and the dependent variable.
1 | VariableExplore(x, y, var_name, plot_save = F, fname = "none")
|
x |
independent variable, must be a vector. If x is a factor it will be converted to a character vector |
y |
dependent variable, must be a vector and can't contain missing values |
var_name |
The name of the dependent variable |
plot_save |
logical indicating if plot should be saved, default is FALSE |
fname |
the name of the file to save the pdf output |
A list containing a plot showing all the info as well as the information that makes it up
1 | VariableExplore(1:100, sample(c(0, 1), 100, replace = T))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.