T-score naar p-waardecalculator
Unilaterale of bilaterale hypothese?
Mate van belang
P-waarde: 0,08088
Het resultaat is NIET SIGNIFICANT bij p < 0,05
//the following function originated from https://stackoverflow.com/questions/16194730/seeking-a-statistical-javascript-function-to-return-p-value-from-a-z-score/30435852
function getPVALUE() {
//get input degrees of freedom, t-value var df = document.getElementById('df').value*1; var t_input = document.getElementById('t').value*1; var t = Math.abs(t_input);
//calculate p-value var p_value = 1 - jStat.studentt.cdf(t, df);
//get tails input if (document.getElementById('two_tailed').checked) { p_value = p_value * 2; }
//get significance level input var sig_level = ''; if (document.getElementById('one').checked) { sig_level = 0.01; } else if (document.getElementById('five').checked) { sig_level = 0.05; } else { sig_level = 0.10; }
//get significance verdict var sig_verdict = ''; if (p_value < sig_level) { sig_verdict = 'SIGNIFICANT'; } else { sig_verdict = 'NOT SIGNIFICANT'; } //output values document.getElementById('exactProb').innerHTML = p_value.toFixed(5); document.getElementById('sig_level').innerHTML = sig_level.toFixed(2); document.getElementById('sig_verdict').innerHTML = sig_verdict; }