generate_report_cjaccard | R Documentation |
This function takes a dataframe, a factor and returns a Microsoft Word document about the Jaccard distances matrix or matrices and the p-values matrix or matrices.
generate_report_cjaccard(
dataset,
formula,
pvalue.method = "permutation",
seed = NULL,
min_group_size = 3
)
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Jaccard distances matrix or matrices and the p_values matrix or matrices. |
pvalue.method |
A p_value method used to calculate the matrix, the default value is "permutation". Another method is "bootstrap". |
seed |
Optionally, set a seed for "bootstrap" or "permutation". |
min_group_size |
Minimum group size to maintain. The default value is 3,therefore groups, inside variables, with less than 3 observations will be discarded. |
A Microsoft Word document about the Jaccard distance matrix or matrices and the p_values matrix or matrices.
# Example with iris dataset
data(iris)
# Generate a report about "Species" factor in iris dataset
generate_report_cjaccard(iris, ~Species,
pvalue.method = "permutation")
# Example with mtcars dataset
data(mtcars)
# Generate a report about "am" factor in mtcars dataset
generate_report_cjaccard(mtcars, ~am,
pvalue.method = "bootstrap", seed = 223)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.