report {igate} | R Documentation |
Generates report about a conducted igate.
Description
Takes results from a previous igate and automatically generates a html report for it. Be aware that running this function will create an html document in your current working directory.
Usage
report(df, versus = 8, target, type = "continuous", test = "w",
ssv = NULL, outlier_removal_target = TRUE,
outlier_removal_ssv = TRUE, good_outcome = "low", results_path,
validation = FALSE, validation_path = NULL,
validation_counts = NULL, validation_summary = NULL,
image_directory = tempdir(), output_name = NULL, output_directory)
Arguments
df |
The data frame that was analysed with |
versus |
What value of |
target |
What |
type |
Was |
test |
Which hypothesis test was used alongside the counting method? |
ssv |
Which |
outlier_removal_target |
Was outlier removal conducted for |
outlier_removal_ssv |
Was outlier removal conducted for each |
good_outcome |
Are |
results_path |
Name of R object (as string) containing the results of |
validation |
Logical. Has validation of the results been performed? |
validation_path |
Name R object (as string) containing the validated observations, i.e. first data frame returned by |
validation_counts |
Name of R object (as string) containing the counts from validation, i.e. the second data frame returned by |
validation_summary |
Name of R object (as string) containing the summary of |
image_directory |
Directory which contains the plots from |
output_name |
Desired name of the output file. File extension .html will be added automatically if not supplied.
If |
output_directory |
Directory into which the report should be saved. To save to the current working directory,
use |
Value
An html file named "iGATE_Report.html" will be output to the current working directory, containing details
about the conducted analysis. This includes a list of the analysed SSV, as well as tables with the results from
igate
/ categorical.igate
and plots from igate.regressions
/
categorical.freqplot
.
Examples
## Example for categorical target variable
# If you want to conduct an igate analysis from scratch, running report
# is the last step and relies on executing the other functions in this package first.
# Run categorical.igate
df <- mtcars
df$cyl <- as.factor(df$cyl)
results <- categorical.igate(df, target = "cyl", best.cat = "8", worst.cat = "4")
# Produce density plots
# Suppose you only want to analyse further the first three identified ssv
results <- results[1:3,]
categorical.freqplot(mtcars, target = "cyl", ssv = results$Causes , savePlots = TRUE)
report(df = df, target = "cyl", type = "categorical", good_outcome = "8",
results_path = "results",
output_name = "testing_igate", output_directory = tempdir())