generate_report_cmahalanobis | R Documentation |
This function takes a dataframe, a factor and returns a Microsoft Word document about Mahalanobis distance matrix and p-values matrix with corresponding plots.
generate_report_cmahalanobis(
dataset,
formula,
pvalue.method = "chisq",
num.permutations = 10,
num.bootstraps = 10
)
dataset |
A dataframe. |
formula |
A factor which you want to calculate Mahalanobis distances matrix and p_values matrix. |
pvalue.method |
A method with which you want to calculate pvalue matrix.The default method is "chisq". Other methods are "permutation" and "bootstrap". |
num.permutations |
A number of permutations to define if you choose "permutation". |
num.bootstraps |
A number of bootstrap to define if you choose "bootstrap". |
A Microsoft Word document about Mahalanobis distances matrix and p_values matrix.
# Generate a report about "Species" factor in iris dataset
generate_report_cmahalanobis(iris, ~Species)
# Generate a report about "am" factor in mtcars dataset
generate_report_cmahalanobis(mtcars, ~am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.