web/js/tests.js
// Transforms the output of a post-hoc test with control method into HTML tables
Transforms the output of a post-hoc test with control method into HTML tables
Transforms the output of a post - hoc test with control method into HTML tables
function control_method_table(data, test, alpha) {
    var salida = 
	"<table class=\"table table-hover table-striped\">\
            <caption>Post-hoc (Using "+data.control+" as control method)</caption>\
			<thead><tr><th>Comparison</th><th>Statistic</th><th>Adjusted p-value</th><th>Result</th></tr></thead>\
            <tbody>";
    $.each(data.comparisons, function(index, value) {
        salida = salida + "<td>" + value + "</td><td>" + data.statistic[index].toFixed(5) + "</td><td>" + data.p_value[index].toFixed(5) + "</td>";
        if (data.result[index])
            salida = salida + "<td>H0 is rejected</td></tr>";
        else
            salida = salida + "<td>H0 is accepted</td></tr>";
    });
    salida = salida + "</tbody></table></div>";
    return salida;
}
function control_method_table ( data , test , alpha ) { var salida = "<table class=\"table table-hover table-striped\">\
            <caption>Post-hoc (Using " + data . control + " as control method)</caption>\
			<thead><tr><th>Comparison</th><th>Statistic</th><th>Adjusted p-value</th><th>Result</th></tr></thead>\
            <tbody>" ; $ . each ( data . comparisons , function ( index , value ) { salida = salida + "<td>" + value + "</td><td>" + data . statistic [ index ] . toFixed ( 5 ) + "</td><td>" + data . p_value [ index ] . toFixed ( 5 ) + "</td>" ; if ( data . result [ index ] ) salida = salida + "<td>H0 is rejected</td></tr>" ; else salida = salida + "<td>H0 is accepted</td></tr>" ; } ) ; salida = salida + "</tbody></table></div>" ; return salida ; }
Transforms the output of a post-hoc test with control method into HTML tables
Transforms the output of a post - hoc test with control method into HTML tables