{"id":433,"date":"2023-07-29T22:59:22","date_gmt":"2023-07-29T22:59:22","guid":{"rendered":"https:\/\/statorials.org\/de\/friedman-testrechner\/"},"modified":"2023-07-29T22:59:22","modified_gmt":"2023-07-29T22:59:22","slug":"friedman-testrechner","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/friedman-testrechner\/","title":{"rendered":"Friedman-testrechner"},"content":{"rendered":"<p><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjs\/5.1.1\/math.js\"><\/script><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/jstat@latest\/dist\/jstat.min.js\"><\/script><\/p>\n<style>\n@import url('https:\/\/fonts.googleapis.com\/css?family=Droid+Serif|Raleway');<\/p>\n<p>.axis--y .domain {\n  display: none;\n}<\/p>\n<p>h1 {\ntext-align: center;\nfont-size: 50px;\nmargin-bottom: 0px;\nfont-family: 'Raleway', serif;\n}<\/p>\n<p>p {\ncolor: black;\ntext-align: center;\nmargin-bottom: 15px;\nmargin-top: 15px;\nfont-family: 'Raleway', sans-serif;\n}<\/p>\n<p>#words {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#words_text_area {\ndisplay:inline-block;\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 100px;\n}<\/p>\n<p>#calcTitle {\ntext-align: center;\nfont-size: 20px;\nmargin-bottom: 0px;\nfont-family: 'Raleway', serif;\n}<\/p>\n<p>#hr_top {\nwidth: 30%;\nmargin-bottom: 0px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>#hr_bottom {\nwidth: 30%;\nmargin-top: 15px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>label, input {\n    display: inline-block;\n    vertical-align: baseline;\n    width: 350px;\n}<\/p>\n<p>    #button {\n      border: 1px solid;\n      border-radius: 10px;\n      margin-top: 20px;<\/p>\n<p>      cursor: pointer;\n      outline: none;\n      background-color: white;\n      color: black;\n      font-family: 'Work Sans', sans-serif;\n      border: 1px solid grey;\n      \/* Green *\/\n    }<\/p>\n<p>    #button:hover {\n      background-color: #f6f6f6;\n      border: 1px solid black;\n    }<\/p>\n<p>\t.label_radio {\n\ttext-align: center;\n    }<\/p>\n<p>td, tr, th {\n    border: 1px solid black;\n}\ntable {\n    border-collapse: collapse;\n}\ntd, th {\n    min-width: 50px;\n    height: 21px;\n}\n.table_span_a, .table_span_b, .table_span_c, .table_span_d, .table_span_e {\n    width: 100%;\n    display: block;\n}<\/p>\n<p>#words_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 350px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#summary_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 20px;\n}<\/p>\n<p>    .label_radio {\n\ttext-align: center;\n}\n<\/style>\n<div id=\"words\">\n<p style=\"text-align: left\">Der <b>Friedman-Test<\/b> ist die nichtparametrische Alternative zur einfaktoriellen ANOVA mit wiederholten Messungen. Es wird verwendet, um Unterschiede zwischen Gruppen zu testen, wenn die abh\u00e4ngige Variable ordinal ist.<\/p>\n<p style=\"text-align: left\"> Um einen Friedman-Test f\u00fcr einen bestimmten Datensatz durchzuf\u00fchren, geben Sie einfach die Werte von bis zu f\u00fcnf Proben in die Zellen unten ein und klicken Sie dann auf die Schaltfl\u00e4che \u201eBerechnen\u201c.<\/p>\n<p style=\"text-align: left\"> Der Rechner zeigt die Q-Teststatistik, den Test-p-Wert und die Berechnungen an, die zur Ableitung der Q-Teststatistik verwendet wurden.<\/p>\n<\/div>\n<div id=\"words_table\">\n<table>\n<tbody>\n<tr>\n<th style=\"background-color: #bee3ff\"> <b>Gruppe 1<\/b><\/th>\n<th style=\"background-color: #bee3ff\"> <b>Gruppe 2<\/b><\/th>\n<th style=\"background-color: #bee3ff\"> <b>Gruppe 3<\/b><\/th>\n<th style=\"background-color: #bee3ff\"> <b>Gruppe 4<\/b><\/th>\n<th style=\"background-color: #bee3ff\"> <b>Gruppe 5<\/b> <\/th>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p1\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p1\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p1\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p1\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p1\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p2\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p2\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p2\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p2\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p2\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p3\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p3\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p3\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p3\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p3\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p4\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p4\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p4\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p4\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p4\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p5\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p5\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p5\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p5\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p5\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p6\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p6\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p6\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p6\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p6\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p7\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p7\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p7\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p7\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p7\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p8\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p8\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p8\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p8\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p8\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p9\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p9\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p9\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p9\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p9\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p10\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p10\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p10\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p10\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p10\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p11\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p11\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p11\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p11\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p11\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p12\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p12\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p12\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p12\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p12\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p13\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p13\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p13\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p13\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p13\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p14\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p14\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p14\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p14\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p14\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p15\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p15\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p15\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p15\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p15\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p16\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p16\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p16\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p16\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p16\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p17\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p17\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p17\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p17\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p17\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p18\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p18\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p18\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p18\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p18\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p19\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p19\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p19\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p19\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p19\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p20\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p20\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p20\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p20\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p20\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p21\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p21\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p21\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p21\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p21\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p22\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p22\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p22\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p22\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p22\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p23\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p23\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p23\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p23\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p23\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p24\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p24\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p24\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p24\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p24\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p25\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p25\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p25\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p25\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p25\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p26\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p26\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p26\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p26\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p26\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p27\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p27\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p27\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p27\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p27\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p28\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p28\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p28\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p28\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p28\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p29\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p29\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p29\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p29\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p29\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p30\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p30\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p30\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p30\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p30\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p31\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p31\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p31\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p31\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p31\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p32\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p32\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p32\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p32\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p32\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p33\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p33\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p33\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p33\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p33\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p34\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p34\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p34\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p34\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p34\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p35\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p35\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p35\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p35\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p35\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td><span class=\"table_span_a p36\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_b p36\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_c p36\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_d p36\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"table_span_e p36\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"words_table\"><input type=\"button\" id=\"button\" onclick=\"calc()\" value=\"Calculate\"><\/div>\n<div>\n<p> Q-Test-Statistik:<span id=\"q\"><\/span><\/p>\n<\/div>\n<div>\n<p> p-Wert:<span id=\"p\"><\/span><\/p>\n<\/div>\n<div>\n<p> <b>L\u00f6sung<\/b><\/p>\n<\/div>\n<div>\n<p> <b>Q =<\/b><span id=\"solution1\"><\/span><\/p>\n<\/div>\n<div>\n<p> <b>Q =<\/b><span id=\"solution2\"><\/span><\/p>\n<\/div>\n<div>\n<p> <b>Q =<\/b><span id=\"solution3\"><\/span><\/p>\n<\/div>\n<p><script><\/p>\n<p>\/\/create function that performs calculations\nfunction calc() {<\/p>\n<p>\t\/\/define addition function\n\t\tfunction add(a, b) {\n\t\t    return a + b;\n\t\t}<\/p>\n<p>\t\/\/define function that can flatten a multi-dimensional array\n\tfunction flatten(arr) {\n      return arr.reduce(function (flat, toFlatten) {\n        return flat.concat(Array.isArray(toFlatten) ? flatten(toFlatten) : toFlatten);\n      }, []);\n    }<\/p>\n<p>\t\/\/get total number of rows\n    var row_input = document.getElementsByClassName('table_span_a');\n\tvar row_array = [];\n\tfor (var i = 0; i < row_input.length; i++) {\n      \trow_array[i] = row_input[i].innerText;\n         }\n\tvalues_row = row_array.filter(n => n);\n\tvar n = values_row.length;<\/p>\n<p>\t\/\/create massive for loop that gets ranks for every single row\n\tall_data = [];<\/p>\n<p>\tfor (var i = 0; i < n; i++) {\n\t\n\tvar p = \"p\"\n\tvar p_number = i-(-1);\n\tvar str = p.concat(p_number);\n        str = str.replace(\/ +\/g, \"\");\n\n\t\/\/get row data\n    var p1_input = document.getElementsByClassName(str);\n\tvar p1_array = [];\n\tfor (var j = 0; j < p1_input.length; j++) {\n      \tp1_array[j] = p1_input[j].innerText;\n         }\n\tvalues_p1 = p1_array.filter(n => n);\n\tvar p1 = values_p1.map(Number);<\/p>\n<p>    \/\/sort row data\n    var sorted = p1.slice().sort(function(a,b){return a-b})\n    var reversed = sorted.slice(0).reverse();\n    var frac_rank = p1.slice().map(function(n) { return ( (sorted.indexOf(n) + 1) + (reversed.length - reversed.indexOf(n)) ) \/ 2 });<\/p>\n<p>    \/\/push sorted row data to total data array\n    all_data.push(frac_rank);<\/p>\n<p>\t} \/\/end massive for loop that ranks every row<\/p>\n<p>\/\/find total treatments\nvar k = all_data[0].length;<\/p>\n<p>\/\/flatten multi-dimensional array into one long array\nflat_data = flatten(all_data);<\/p>\n<p>\/\/find sum of ranks for each treatment\nvar a = [], b = [], c = [], d = [], e = [], total_squared_ranks;<\/p>\n<p>    if (k == 2) {\n    for (i = 0; i < flat_data.length; i+= k) {\n        a.push(flat_data[i]);\n        }\n    for (i = 1; i < flat_data.length; i+= k) {\n        b.push(flat_data[i]);\n        }\n    var sum_a_squared = Math.pow(a.reduce(add, 0), 2);\n    var sum_b_squared = Math.pow(b.reduce(add, 0), 2);\n    total_squared_ranks = [sum_a_squared, sum_b_squared].reduce(add, 0);\n    }\n    \n    if (k == 3) {\n    for (i = 0; i < flat_data.length; i+= k) {\n        a.push(flat_data[i]);\n        }\n    for (i = 1; i < flat_data.length; i+= k) {\n        b.push(flat_data[i]);\n        }\n    for (i = 2; i < flat_data.length; i+= k) {\n        c.push(flat_data[i]);\n        }\n    var sum_a_squared = Math.pow(a.reduce(add, 0), 2);\n    var sum_b_squared = Math.pow(b.reduce(add, 0), 2);\n    var sum_c_squared = Math.pow(c.reduce(add, 0), 2);\n    total_squared_ranks = [sum_a_squared, sum_b_squared, sum_c_squared].reduce(add, 0);\n    }\n    \n    if (k == 4) {\n    for (i = 0; i < flat_data.length; i+= k) {\n        a.push(flat_data[i]);\n        }\n    for (i = 1; i < flat_data.length; i+= k) {\n        b.push(flat_data[i]);\n        }\n    for (i = 2; i < flat_data.length; i+= k) {\n        c.push(flat_data[i]);\n        }\n    for (i = 3; i < flat_data.length; i+= k) {\n        d.push(flat_data[i]);\n        }\n    var sum_a_squared = Math.pow(a.reduce(add, 0), 2);\n    var sum_b_squared = Math.pow(b.reduce(add, 0), 2);\n    var sum_c_squared = Math.pow(c.reduce(add, 0), 2);\n    var sum_d_squared = Math.pow(d.reduce(add, 0), 2);\n    total_squared_ranks = [sum_a_squared, sum_b_squared, sum_c_squared, sum_d_squared].reduce(add, 0);\n    }\n    \n    if (k == 5) {\n    for (i = 0; i < flat_data.length; i+= k) {\n        a.push(flat_data[i]);\n        }\n    for (i = 1; i < flat_data.length; i+= k) {\n        b.push(flat_data[i]);\n        }\n    for (i = 2; i < flat_data.length; i+= k) {\n        c.push(flat_data[i]);\n        }\n    for (i = 3; i < flat_data.length; i+= k) {\n        d.push(flat_data[i]);\n        }\n    for (i = 4; i < flat_data.length; i+= k) {\n        e.push(flat_data[i]);\n        }\n    var sum_a_squared = Math.pow(a.reduce(add, 0), 2);\n    var sum_b_squared = Math.pow(b.reduce(add, 0), 2);\n    var sum_c_squared = Math.pow(c.reduce(add, 0), 2);\n    var sum_d_squared = Math.pow(d.reduce(add, 0), 2);\n    var sum_e_squared = Math.pow(e.reduce(add, 0), 2);\n    total_squared_ranks = [sum_a_squared, sum_b_squared, sum_c_squared, sum_d_squared, sum_e_squared].reduce(add, 0);\n    }\n    \n     \/\/final calculations for critical value and p value\n     q_term1 = 12 \/ (n*k*(k-(-1)));\n     q_term3 = 3*n*(k-(-1));\n     q = (q_term1 * total_squared_ranks) - q_term3;\n     p = 1 - jStat.chisquare.cdf(q, k-1);\n     \n     \/\/output results\n    document.getElementById('q').innerHTML = q.toFixed(5);\n\tdocument.getElementById('p').innerHTML = p.toFixed(5);\n\tdocument.getElementById('solution1').innerHTML = \"(12\/(nk(k+1)) * (\u2211R<sup>2<\/sup>) - 3n(k+1)\";\n\tdocument.getElementById('solution2').innerHTML = q_term1 + \" * \" + total_squared_ranks.toFixed(1) + \" - \" + q_term3;\n\tdocument.getElementById('solution3').innerHTML = q.toFixed(5);\n} \/\/end calc() function<\/p>\n<p><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Friedman-Test ist die nichtparametrische Alternative zur einfaktoriellen ANOVA mit wiederholten Messungen. Es wird verwendet, um Unterschiede zwischen Gruppen zu testen, wenn die abh\u00e4ngige Variable ordinal ist. Um einen Friedman-Test f\u00fcr einen bestimmten Datensatz durchzuf\u00fchren, geben Sie einfach die Werte von bis zu f\u00fcnf Proben in die Zellen unten ein und klicken Sie dann auf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Friedman-Testrechner \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/friedman-testrechner\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friedman-Testrechner \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/friedman-testrechner\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T22:59:22+00:00\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/friedman-testrechner\/\",\"url\":\"https:\/\/statorials.org\/de\/friedman-testrechner\/\",\"name\":\"Friedman-Testrechner \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-29T22:59:22+00:00\",\"dateModified\":\"2023-07-29T22:59:22+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/friedman-testrechner\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/friedman-testrechner\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/friedman-testrechner\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friedman-testrechner\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Friedman-Testrechner \u2013 Statorials","description":"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/de\/friedman-testrechner\/","og_locale":"de_DE","og_type":"article","og_title":"Friedman-Testrechner \u2013 Statorials","og_description":"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.","og_url":"https:\/\/statorials.org\/de\/friedman-testrechner\/","og_site_name":"Statorials","article_published_time":"2023-07-29T22:59:22+00:00","author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/friedman-testrechner\/","url":"https:\/\/statorials.org\/de\/friedman-testrechner\/","name":"Friedman-Testrechner \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-29T22:59:22+00:00","dateModified":"2023-07-29T22:59:22+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"Dieser Rechner f\u00fchrt einen Friedman-Test durch und zeigt die zur Durchf\u00fchrung des Tests verwendeten Berechnungen an.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/friedman-testrechner\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/friedman-testrechner\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/friedman-testrechner\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"Friedman-testrechner"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/433"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}