This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
friedman.test.with.post.hoc <- function(data, alpha = 0.05) | |
{ | |
print("Check if you missing the packages 'graph' and 'Rgraphviz'. Try to install them using bioconductor") | |
#source("http://bioconductor.org/biocLite.R") | |
#biocLite(c("graph","Rgraphviz")) | |
# Loading needed packages | |
if(!require(ggplot2)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prepare.data.statistical.test <- function(csvName = "teste.csv"){ | |
#read the data | |
my_data <- read.csv(csvName, sep=";") | |
#replace the rownames with the instance (problem) names | |
row.names(my_data) <- my_data$Instance | |
#remove the Instance column | |
my_data <- my_data[,!(names(my_data) %in% c("Instance"))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' @title Evaluate the data distribution | |
#' | |
#' \code{evaluate.data.distribution} returns the data evaluation of a matrix, | |
#' This function contains the Shapiro-Wilk W test, and graphs and plots from DescTools and scmamp packages | |
#' | |
#' @description This function is a wrapper to evaluate when there is multiple comparison tests. | |
#' @param data | |
#' @param isEnglish | |
#' @return A list with the evaluation results | |
#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' @title Tests for multiple comparisons - Kruskal-Wallis with Post-hoc (when necessary) | |
#' | |
#' @description This function is a wrapper to multiple comparison tests. | |
#' @param value | |
#' @param group | |
#' @param data | |
#' @param alpha | |
kruskal.test.with.post.hoc <- function(value, group, data, alpha = 0.05, notch = FALSE, omm = FALSE) | |
{ | |
print("If you would like export the data frames to LaTeX, we recommend to install and to use 'xtable'.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# execute the function kruskal.test.with.post.hoc | |
#read the data | |
csv_file <- "kruskal_final_bisect.csv" | |
my_data <- read.csv(csv_file, sep=";") | |
result <- kruskal.test.with.post.hoc(my_data$Value, my_data$Group, my_data) | |
result | |
format(result$Nemenyi$p.value, scientific = TRUE) | |
format(result$Kruskal$p.value, scientific = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# installation of Oracle Java JDK. | |
sudo apt-get -y update | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y update | |
sudo apt-get -y install oracle-java7-installer | |
# Installation of commonly used python scipy tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#check java instalation | |
java -version | |
#get path | |
echo $JAVA_HOME | |
#install java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install JAVA | |
wget https://gist.githubusercontent.com/jacksonpradolima/1253019d0a63b07501b767fefc3531a8/raw/d10b827ecd752106ce99649c5137c04c6e09aff0/install_java.sh | |
source install_java.sh | |
# Install some python packages and tools | |
wget https://gist.githubusercontent.com/jacksonpradolima/a7de2799142c442021a55a71bf5fcacb/raw/f509db81b114ded277014af9e2e9d1c7cc902867/install_python_components.sh | |
source install_python_components.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installation of Oracle Java JDK | |
sudo apt-get -y update | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y update | |
sudo apt-get -y install oracle-java8-installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation of commonly used python scipy tools | |
sudo apt-get -y install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose python-geopy python-seaborn | |
sudo apt-get install python-pip python-dev build-essential | |
sudo pip install --upgrade pip | |
sudo python -m pip install folium | |
sudo python -m pip install scikit-learn |
OlderNewer