generate_report_cminkowski | R Documentation |
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Minkowski dissimilarities/distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_cminkowski(
dataset,
formula,
p = 3,
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 Minkowski dissimilarities/distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
p |
Order of the Minkowski dissimilarities/distances. The default value is 3. |
pvalue.method |
A p_value method used to calculate the matrix or matrices (two or more), the default value is "permutation". Another method is "bootstrap". |
seed |
Optionally, set a seed for "bootstrap" and "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. |
When p < 1, the Minkowski distance is a "dissimilarity" measure. When p >= 1, the triangle inequality property is satisfied and we say "Minkowski distance".
A Microsoft Word document about the Minkowski dissimilarities/distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
# Example with iris dataset
data(iris)
# Generate a report about "Species" factor in iris dataset
generate_report_cminkowski(iris, ~Species, p = 3,
pvalue.method = "permutation")
# Example with mtcars dataset
data(mtcars)
# Generate a report about "am" factor in mtcars dataset
generate_report_cminkowski(mtcars, ~am,
p = 3, pvalue.method = 'permutation', seed = 234)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.