Quantcast
Channel: PhD – ORGANIZING CREATIVITY
Viewing all articles
Browse latest Browse all 186

R Stats results with a bit more annotation

$
0
0
«Winwood Reade is good upon the subject,» said Holmes. «He remarks that, while the individual man is an insoluble puzzle, in the aggregate he becomes a mathematical certainty. You can, for example, never foretell what any one man will do, but you can say with precision what an average number will be up to. Individuals vary, but percentages remain constant. So says the statistician.» «The Sign of Four» by Sir Author Conan Doyle I’m still exploring R and, damn, it’s cool. For example, I did write a just-for-fun function providing me with the odds ratios, the confidence intervals, and a couple of other information. Using my_stats_oddsRatio(20, 80, 10, 90, "bubblegum", "no bubblegum", "cancer", "no cancer") results in the output Odds Ratio for table:         cancer no cancer bubblegum    20      80 no bubblegum 10      90 The odds for "cancer" for "bubblegum" is 0.25. The odds for "cancer" for "no bubblegum" is 0.11. Odds ratios and 95%-Confidence Intervals Odds ratio "bubblegum" vs. "no bubblegum" is: 2.25 [0.99; 5.09] Odds ratio "no bubblegum" vs. "bubblegum" is: 0.44 [0.2; 1.01] (Careful: CI contains 1.) Odds ratios With "bubblegum" it is 2.25 times more likely to "cancer" than "no bubblegum". [...]

Viewing all articles
Browse latest Browse all 186

Trending Articles