Skip to content

Instantly share code, notes, and snippets.

@amergin
Created March 15, 2015 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amergin/03a93a16461dcf2ea6e8 to your computer and use it in GitHub Desktop.
Save amergin/03a93a16461dcf2ea6e8 to your computer and use it in GitHub Desktop.
var t = beta / _sqrt;
console.log("degrees", degrees);
console.log("beta", beta, "sqrt", _sqrt);
console.log("t=", t, "tprob=", statDist.tprob(degrees, t));
var pvalue = 2 * (1 - statDist.tprob(degrees, t));
console.log("pvalue=", pvalue);
Tulosteet ylläolevasta:
degrees 82 (program):64
beta 1.0097334538696747 sqrt 0.015688694906613447 (program):65
t= 64.36057682809738 tprob= 0 (program):66
pvalue= 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment