| Title: | Calculate Distance Measures for DataFrames |
|---|---|
| Description: | It provides functions that calculate Mahalanobis distance, Euclidean distance, Manhattan distance, Chebyshev distance, Hamming distance, Canberra distance, Minkowski dissimilarity (distance defined for p >= 1), Cosine dissimilarity, Bhattacharyya dissimilarity, Jaccard distance, Hellinger distance, Bray-Curtis dissimilarity, Sorensen-Dice dissimilarity, Pearson, Kendall and Spearman dissimilarities and correlations (these last three on GitHub) between each pair of species in a list of data frames. These statistics are fundamental in various fields, such as cluster analysis, classification, and other applications of machine learning and data mining, where assessing similarity or dissimilarity between data is crucial. The package is designed to be flexible and easily integrated into data analysis workflows, providing reliable tools for evaluating distances in multidimensional contexts. |
| Authors: | Flavio Gioia [aut, cre] (ORCID: <https://orcid.org/0009-0000-0326-3840>) |
| Maintainer: | Flavio Gioia <[email protected]> |
| License: | GPL-3 |
| Version: | 1.1.0 |
| Built: | 2026-10-09 17:00:44 UTC |
| Source: | https://github.com/hflavio12/cmahalanobis |
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Bhattacharyya dissimilarities about the factors inside them. You can also select "index" to calculate the Bhattacharyya dissimilarities between each row.
cbhattacharyya( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cbhattacharyya( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Bhattacharyya dissimilarities matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Bhattacharyya dissimilarities matrix will be printed; instead, by specifying variables, the Bhattacharyya dissimilarities matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only dissimilarities between rows are calculated. Therefore, this snippet: "cbhattacharyya(mtcars, ~am + carb + index)" will print dissimilarities only considering "index". Optionally, rows with NA values can be omitted and negative values are transformed in 0.
# Example with the CO2 dataset table(CO2$Plant) cbhattacharyya(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cbhattacharyya(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cbhattacharyya(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cbhattacharyya(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Bray-Curtis dissimilarities about the factors inside them. You can also select "index" to calculate the Bray-Curtis dissimilarities between each row.
cbraycurtis( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cbraycurtis( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Bray-Curtis dissimilarities matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Bray-Curtis dissimilarities matrix will be printed; instead, by specifying variables, the Bray-Curtis dissimilarities matrix or matrices (two or more) between each pair of factors and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only dissimilarities between rows are calculated. Therefore, this snippet: "cbraycurtis(mtcars, ~am + carb + index)" will print dissimilarities only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cbraycurtis(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cbraycurtis(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cbraycurtis(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cbraycurtis(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Canberra distances about the factors inside them. You can also select "index" to calculate the Canberra distances between each row.
ccanberra( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )ccanberra( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Canberra distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Canberra distances matrix will be printed; instead, by specifying variables, the Canberra distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "ccanberra(mtcars, ~am + carb + index)" will print distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) ccanberra(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ccanberra(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) ccanberra(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ccanberra(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Chebyshev distances about the factors inside them. You can also select "index" to calculate the Chebyshev distances between each row.
cchebyshev( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cchebyshev( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Chebyshev distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Chebyshev distances matrix will be printed; instead, by specifying variables, the Chebyshev distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "cchebyshev(mtcars, ~am + carb + index)" will print distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cchebyshev(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cchebyshev(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cchebyshev(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cchebyshev(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Cosine dissimilarity about the factors inside them. You can also select "index" to calculate the Cosine distances between each row.
ccosine( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )ccosine( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Cosine dissimilarity matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Cosine dissimilarity matrix will be printed; instead, by specifying variables, the Cosine dissimilarities matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "ccosine(mtcars, ~am + carb + index)" will print distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) ccosine(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ccosine(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) ccosine(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ccosine(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Euclidean distances about each pair of factors inside them. You can also select "index" to calculate the Euclidean distances between each row.
ceuclide( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )ceuclide( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Euclidean distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
min_group_size |
Minimum group size to maintain. The default value is 3, therefore factors, inside variables, with less than 3 observations will be discarded. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Euclidean distance matrix will be printed; instead, by specifying variables, the Euclidean distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "ceuclide(mtcars, ~am + carb + index)" will print distances only considering "index". Optionally, rows with missing values are omitted.
# Example with the CO2 dataset table(CO2$Plant) ceuclide(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ceuclide(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) ceuclide(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ceuclide(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Hamming distances about the factors inside them. You can also select "index" to calculate the Hamming distances between each row.
chamming( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )chamming( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Hamming distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with "median" and "centroid" agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Hamming distances matrix will be printed; instead, by specifying variables, the Hamming distances matrix or matrices (two or more) between each pair of factors and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "chamming(mtcars, ~am + carb + index)" will print the distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) chamming(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) chamming(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) chamming(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) chamming(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Hellinger distances about the factors inside them. You can also select "index" to calculate the Hellinger distances between each row.
chellinger( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )chellinger( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Hellinger distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the distance for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Hellinger distances matrix will be printed; instead, by specifying variables, the Hellinger distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "chellinger(mtcars, ~am + carb + index)" will print the distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) chellinger(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) chellinger(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) chellinger(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) chellinger(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Jaccard distance about the factors inside them. You can also select "index" to calculate the Jaccard distances between each row.
cjaccard( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cjaccard( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Jaccard distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating distances between observations. Available methods are "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the distance for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Jaccard distances matrix will be printed; instead, by specifying variables, the Jaccard distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only dissimilarities between rows are calculated. Therefore, this snippet: "cjaccard(mtcars, ~am + carb + index)" will print dissimilarities only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cjaccard(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cjaccard(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cjaccard(CO2, ~Plant, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cjaccard(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Kendall correlation or dissimilarity about the factors inside them. You can also select "index" to calculate this statistic between each row.
ckendall( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, z_test = TRUE )ckendall( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, z_test = TRUE )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Kendall correlation or dissimilarity matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the statistic for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
Logical, if TRUE, the Kendall correlation or dissimilarity between factors is printed. |
dissimilarity |
If TRUE, default, the dissimilarity is displayed. |
z_test |
If TRUE, statistical significance using the standard normal distribution is performed. |
According to the option chosen in formula, with "index" the Kendall matrix will be printed; instead, by specifying variables, the Kendall correlations matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only correlations between rows are calculated. Therefore, this snippet: "ckendall(mtcars, ~am + carb + index)" will print correlations only considering "index". Optionally, rows with NA values can be omitted and negative values are transformed in 0.
# Example with the CO2 dataset table(CO2$Plant) ckendall(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ckendall(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) ckendall(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) ckendall(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Mahalanobis distances about each pair of factors inside them. You can also select "index" to calculate the Mahalanobis distances between each row.
cmahalanobis( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", pvalues_chisq = TRUE, max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cmahalanobis( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", pvalues_chisq = TRUE, max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Mahalanobis distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
min_group_size |
Minimum group size to maintain. The default value is 3, therefore factors, inside variables, with less than 3 observations will be discarded. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
pvalues_chisq |
If TRUE, print the result of the chi-squared test on squared distances. The distances with "pvalues_chisq = FALSE" are not squared; instead, with "pvalues_chisq = TRUE", the squared Mahalanobis distances with corresponding p_values will be printed. Default is FALSE. |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula and in pvalues_chisq, with "index" and "pvalues_chisq = TRUE" the squared Mahalanobis distance matrix will be printed with corresponding pvalues; instead, with "index" and "pvalues_chisq = FALSE", only the Mahalanobis distances (not squared) will be printed. By specifying variables, the Mahalanobis distances matrix or matrices (two or more) between each pair of factors and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "cmahalanobis(mtcars, ~am + carb + index)" will print distances and plot only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cmahalanobis(CO2, ~Plant, pvalues_chisq = TRUE, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cmahalanobis(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cmahalanobis(CO2, ~Plant, pvalues_chisq = TRUE, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cmahalanobis(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Manhattan distances about the factors inside them. You can also select "index" to calculate the Manhattan distances between each row.
cmanhattan( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cmanhattan( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Manhattan distances matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Manhattan distances matrix will be printed; instead, by specifying variables, the Manhattan distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "cmanhattan(mtcars, ~am + carb + index)" will print the distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cmanhattan(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cmanhattan(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cmanhattan(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cmanhattan(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Minkowski distances about the factors inside them. You can also select "index" to calculate the Minkowski distances between each row.
cminkowski( dataset, formula, p = 3, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )cminkowski( dataset, formula, p = 3, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Minkowski distances matrix or matrices (two or more). |
p |
Order of the Minkowski distance. |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Minkowski distances matrix will be printed; instead, by specifying variables, the Minkowski distances matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
When p < 1, the Minkowski distance is a "dissimilarity" measure. When p >= 1, the triangle inequality property is satisfied and we say "Minkowski distance". If "index" is selected with variables, only distances between rows are calculated. Therefore, this snippet: "cminkowski(mtcars, ~am + carb + index)" will print distances only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) cminkowski(CO2, ~Plant, p = 4, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cminkowski(airquality, ~index, p = 3, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cminkowski(CO2, ~Plant, p = 4, plot = TRUE, grouping_stat = 'mean', na_removal = TRUE, automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cminkowski(airquality, ~index, p = 3, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Pearson correlation or dissimilarity about the factors inside them. You can also select "index" to calculate this statistic between each row.
cpearson( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, t_test = TRUE )cpearson( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, t_test = TRUE )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Pearson correlation or dissimilarity matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the statistic for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
Logical, if TRUE, the Pearson correlation or dissimilarity between factors is printed. |
dissimilarity |
If TRUE, default, the dissimilarity Pearson's R is displayed. |
t_test |
If TRUE, statistical significance using the t-student distribution is performed. |
According to the option chosen in formula, with "index" the Pearson' R matrix will be printed; instead, by specifying variables, the Pearson correlations matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only correlations between rows are calculated. Therefore, this snippet: "cpearson(mtcars, ~am + carb + index)" will print correlations only considering "index". Optionally, rows with NA values can be omitted and negative values are transformed in 0.
# Example with the CO2 dataset table(CO2$Plant) cpearson(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cpearson(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cpearson(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cpearson(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Sorensen-Dice dissimilarities about the factors inside them. You can also select "index" to calculate the Sorensen-Dice dissimilarities between each row.
csorensendice( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )csorensendice( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Sorensen-Dice dissimilarities matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the dissimilarity for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
According to the option chosen in formula, with "index" the Sorensen-Dice dissimilarities matrix will be printed; instead, by specifying variables, the Sorensen-Dice dissimilarities matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only dissimilarities between rows are calculated. Therefore, this snippet: "csorensendice(mtcars, ~am + carb + index)" will print dissimilarities only considering "index". Optionally, rows with NA values are omitted.
# Example with the CO2 dataset table(CO2$Plant) csorensendice(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) csorensendice(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) csorensendice(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) csorensendice(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe and a variable or variables (two or more) in input, and returns a matrix or matrices (two or more) with the Spearman correlation or dissimilarity about the factors inside them. You can also select "index" to calculate this statistic between each row.
cspearman( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, t_test = TRUE )cspearman( dataset, formula, plot = TRUE, min_group_size = 3, method = "average", max_index_sample = NULL, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = TRUE, dissimilarity = TRUE, t_test = TRUE )
dataset |
A dataframe. |
formula |
The index of the dataframe, otherwise a variable or variables (two or more) with factors which you want to calculate the Spearman correlation or dissimilarity matrix or matrices (two or more). |
plot |
Logical, if TRUE, dendrograms with various agglomeration metrics for factors (two or more) are displayed. With "index" in formula, a dendrogram considering the observation is displayed. |
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. For "index", this value is always 1. |
method |
The agglomeration method for calculating dissimilarities between observations. Available methods are "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". |
max_index_sample |
A number of random samples from a dataset for which you want to calculate the statistic for index mode, useful with very large dataset. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
Logical, if TRUE, the Spearman correlation or dissimilarity between factors is printed. |
dissimilarity |
If TRUE, default, the dissimilarity is displayed. |
t_test |
If TRUE, statistical significance using the t-student distribution is performed. |
According to the option chosen in formula, with "index" the Spearman matrix will be printed; instead, by specifying variables, the Spearman correlations matrix or matrices (two or more) between each pair of groups and, optionally, the plot or plots (two or more) will be printed.
If "index" is selected with variables, only correlations between rows are calculated. Therefore, this snippet: "cspearman(mtcars, ~am + carb + index)" will print correlations only considering "index". Optionally, rows with NA values can be omitted and negative values are transformed in 0.
# Example with the CO2 dataset table(CO2$Plant) cspearman(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cspearman(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)# Example with the CO2 dataset table(CO2$Plant) cspearman(CO2, ~Plant, plot = TRUE, grouping_stat = 'median', automatic_encoding = TRUE) # Example with the airquality dataset summary(airquality) cspearman(airquality, ~index, plot = TRUE, na_removal = TRUE, max_index_sample = 40)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Bhattacharyya dissimilarities matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_cbhattacharyya( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cbhattacharyya( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Bhattacharyya dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Bhattacharyya dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cbhattacharyya(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cbhattacharyya(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cbhattacharyya(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cbhattacharyya(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Bray-Curtis dissimilarities matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_cbraycurtis( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cbraycurtis( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Bray-Curtis dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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' 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Bray-Curtis dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cbraycurtis(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cbraycurtis(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cbraycurtis(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cbraycurtis(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Canberra distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_ccanberra( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_ccanberra( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Canberra distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Canberra distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_ccanberra(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ccanberra(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_ccanberra(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ccanberra(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Chebyshev distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_cchebyshev( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cchebyshev( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Chebyshev distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Chebyshev distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cchebyshev(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cchebyshev(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cchebyshev(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cchebyshev(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Cosine distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_ccosine( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_ccosine( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Cosine distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Cosine distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_ccosine(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ccosine(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_ccosine(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ccosine(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Euclidean distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_ceuclide( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_ceuclide( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Euclidean distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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" or "permutation". |
min_group_size |
Minimum group size to maintain. The default value is 3, therefore factors, inside variables, with less than 3 observations will be discarded. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Euclidean distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_ceuclide(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ceuclide(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_ceuclide(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_ceuclide(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Hamming distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_chamming( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_chamming( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Hamming distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Hamming distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_chamming(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_chamming(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_chamming(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_chamming(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Hellinger distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_chellinger( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_chellinger( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Hellinger distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Hellinger distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_chellinger(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_chellinger(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_chellinger(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_chellinger(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
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, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cjaccard( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Jaccard distance matrix or matrices and the p_values matrix or matrices.
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cjaccard(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cjaccard(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cjaccard(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cjaccard(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Mahalanobis distances matrix or matrices (two or more) and the p-values matrix or matrices.
generate_report_cmahalanobis( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, pvalues_chisq = FALSE, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cmahalanobis( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, pvalues_chisq = FALSE, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Mahalanobis distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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" 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. |
pvalues_chisq |
If TRUE, print the result of the chi-squared test on squared distances. The resulting distances with "pvalues_chisq = FALSE" are not squared; instead, with "pvalues_chisq = TRUE", the squared Mahalanobis distance matrix with corresponding p_values will be printed. Default is FALSE. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Mahalanobis distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cmahalanobis(CO2, ~Plant + Type, pvalues_chisq = TRUE, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cmahalanobis(airquality, ~Ozone, pvalues_chisq = FALSE, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cmahalanobis(CO2, ~Plant + Type, pvalues_chisq = TRUE, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cmahalanobis(airquality, ~Ozone, pvalues_chisq = FALSE, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Manhattan distances matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_cmanhattan( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cmanhattan( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Manhattan distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Manhattan distances matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cmanhattan(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cmanhattan(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cmanhattan(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cmanhattan(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
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, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_cminkowski( dataset, formula, p = 3, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
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).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_cminkowski(CO2, ~Plant + Type, p = 3, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cminkowski(airquality, ~Ozone, p = 4, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_cminkowski(CO2, ~Plant + Type, p = 3, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_cminkowski(airquality, ~Ozone, p = 4, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
This function takes a dataframe, a factor or factors (two or more) and returns a Microsoft Word document about the Sorensen-Dice dissimilarities matrix or matrices (two or more) and the p-values matrix or matrices (two or more).
generate_report_csorensendice( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )generate_report_csorensendice( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = TRUE, na_removal = TRUE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Sorensen-Dice dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). |
A Microsoft Word document about the Sorensen-Dice dissimilarities matrix or matrices (two or more) and the p_values matrix or matrices (two or more).
About pvalues, this function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
generate_report_csorensendice(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_csorensendice(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)generate_report_csorensendice(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 10, grouping_stat = 'median', automatic_encoding = TRUE) generate_report_csorensendice(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 10)
Using the Bhattacharyya dissimilarity for the dissimilarities calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescbatt( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluescbatt( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate Bhattacharyya dissimilarities matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluescbatt(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescbatt(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, grouping_stat = 'mean', num_replicas = 50)pvaluescbatt(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescbatt(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, grouping_stat = 'mean', num_replicas = 50)
Using the Bray-Curtis dissimilarity for the dissimilarities calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescbrcu( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluescbrcu( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Bray-Curtis dissimilarities matrix or matrices (two or more). |
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' 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluescbrcu(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescbrcu(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluescbrcu(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescbrcu(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Canberra distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluesccanb( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluesccanb( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Canberra distances matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluesccanb(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccanb(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluesccanb(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccanb(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Chebyshev distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluesccheb( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluesccheb( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Chebyshev distances matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
#' @note This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluesccheb(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccheb(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluesccheb(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccheb(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Cosine distance, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluesccosi( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluesccosi( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Cosine distances matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutation or bootstrap replicas to employ, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluesccosi(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccosi(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluesccosi(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesccosi(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Euclidean distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluesceucl( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluesceucl( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Euclidean distances matrix or matrices (two or more). |
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" methods. |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
#' @note This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluesceucl(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesceucl(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluesceucl(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluesceucl(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Hamming distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors.
pvalueschamm( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )pvalueschamm( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Hamming distances matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvalueschamm(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvalueschamm(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvalueschamm(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvalueschamm(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Hellinger distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvalueschell( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvalueschell( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Hellinger distances matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvalueschell(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvalueschell(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvalueschell(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvalueschell(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Jaccard distance for the distance calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescjacc( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluescjacc( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Jaccard distance matrix or matrices (two or more). |
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" 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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues
pvaluescjacc(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescjacc(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluescjacc(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescjacc(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Mahalanobis distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors.
pvaluescmaha( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )pvaluescmaha( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Mahalanobis distances matrix or matrices (two or more). |
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" methods. |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluescmaha(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmaha(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluescmaha(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmaha(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Manhattan distance for the distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescmanh( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )pvaluescmanh( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Manhattan distances matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluescmanh(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmanh(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluescmanh(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmanh(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)
Using the Minkowski dissimilarity/distance for the dissimilarities/distances calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescmink( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, p = 3, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )pvaluescmink( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, p = 3, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "median" )
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). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
p |
Order of the Minkowski dissimilarities/distances. The default value is 3. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix of p_values and, optionally, the plot.
When p < 1, the Minkowski distance is a "dissimilarity" measure. When p >= 1, the triangle inequality property is satisfied and we say "Minkowski distance". This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continue.
pvaluescmink(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, p = 3, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmink(airquality, ~Ozone, pvalue.method = 'bootstrap', p = 3, na_removal = TRUE, num_replicas = 50)pvaluescmink(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, p = 3, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescmink(airquality, ~Ozone, pvalue.method = 'bootstrap', p = 3, na_removal = TRUE, num_replicas = 50)
Using the Sorensen-Dice dissimilarity for the dissimilarities calculation, this function takes a dataframe, a variable or variables (two or more), a p_value method such as "bootstrap" and "permutation" and returns the p_values matrix or matrices (two or more) between each pair of factors and a plot or plots (two or more) if the user select TRUE or leaves the parameter without argument.
pvaluescsore( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )pvaluescsore( dataset, formula, pvalue.method = "permutation", seed = NULL, min_group_size = 3, num_replicas = 1000, automatic_encoding = FALSE, na_removal = FALSE, grouping_stat = "mean" )
dataset |
A dataframe. |
formula |
A variable or variables (two or more) with factors which you want to calculate the Sorensen-Dice dissimilarities matrix or matrices (two or more). |
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. |
num_replicas |
Number of permutations or bootstraps trials, the default value is 1000. |
automatic_encoding |
Logical, if TRUE, names inside factor variables will be transformed in numbers with ordinal order (1,2,....). |
na_removal |
Logical, if TRUE, missing value removal on rows is performed. |
grouping_stat |
When a factor variable is specified, calculate the specified grouping statistic for each factor. Available methods are: mean (arithmetic mean), median and SDS (standard deviations). Then, we find p-values with the resulting distances. |
A list containing a matrix or matrices (two or more) of p_values and, optionally, the plot.
This function leverages on an early stopping procedure in which the resulting matrix is printed also if the specified number of replicas is not reached; if every 500 replicas the maximum difference between each p_value does not exceed 0.0001, the function will print the entire matrix, else it continues.
pvaluescsore(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescsore(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)pvaluescsore(CO2, ~Plant + Type, pvalue.method = "permutation", seed = 122, num_replicas = 50, grouping_stat = 'median', automatic_encoding = TRUE) pvaluescsore(airquality, ~Ozone, pvalue.method = 'bootstrap', na_removal = TRUE, num_replicas = 50)