Advertise with Googlier.com Comments for BioStatMatt https://biostatmatt.com Thu, 29 Sep 2022 20:44:05 +0000 hourly 1 https://wordpress.org/?v=7.1.3 Comment on Dehydrating lentil curry for backpacking by Nisha from Rainbow Plant Life https://biostatmatt.com/archives/3085/comment-page-1#comment-568042 Thu, 29 Sep 2022 20:44:05 +0000 https://biostatmatt.com/?p=3085#comment-568042 This is so cool!! Never in a million years did I think anyone would try dehydrating this recipe. I'm glad it turned out well and you enjoyed it on the trail!

]]>
Comment on Quick illustration of Metropolis and Metropolis-in-Gibbs Sampling in R by Quick illustration of Metropolis and Metropolis-in-Gibbs Sampling in R – Mubashir Qasim https://biostatmatt.com/archives/2964/comment-page-1#comment-222604 Sun, 04 Jun 2017 15:18:17 +0000 http://biostatmatt.com/?p=2964#comment-222604 […] article was first published on R – BioStatMatt, and kindly contributed to […]

]]>
Comment on Quick illustration of Metropolis and Metropolis-in-Gibbs Sampling in R by Quick illustration of Metropolis and Metropolis-in-Gibbs Sampling in R | A bunch of data https://biostatmatt.com/archives/2964/comment-page-1#comment-222593 Sun, 04 Jun 2017 12:36:03 +0000 http://biostatmatt.com/?p=2964#comment-222593 […] article was first published on R – BioStatMatt, and kindly contributed to […]

]]>
Comment on Round values while preserve their rounded sum in R by Tom https://biostatmatt.com/archives/2902/comment-page-1#comment-205555 Tue, 02 Aug 2016 02:57:00 +0000 http://biostatmatt.com/?p=2902#comment-205555 This is brilliant.

]]>
Comment on Round values while preserve their rounded sum in R by Charles https://biostatmatt.com/archives/2902/comment-page-1#comment-205359 Fri, 29 Jul 2016 16:01:05 +0000 http://biostatmatt.com/?p=2902#comment-205359 In reply to Carl Witthoft.

"*Never* round in the middle of a calculation. You only round the final answer. " was what I was taught in high school, and I remember there were some classic examples of this, at least pre-internet, not sure what is on the inter webs nowadays.

In my current line of work, higher level managers who aren't as number savvy don't want to see a table where "0.037 % of the patients Native Americans over the age of 55", they don't seem to want to see any percentage lower than a "0.1%," which means (you guessed it) there is going to be rounding error.

]]>
Comment on Round values while preserve their rounded sum in R by BioStatMatt https://biostatmatt.com/archives/2902/comment-page-1#comment-205318 Fri, 29 Jul 2016 00:20:21 +0000 http://biostatmatt.com/?p=2902#comment-205318 In reply to Max.

Looks like it works:

> sum(c(0.335,0.335,0.330))
[1] 1
> sum(round_preserve_sum(c(0.335,0.335,0.330)))
[1] 1

]]>
Comment on Round values while preserve their rounded sum in R by Max https://biostatmatt.com/archives/2902/comment-page-1#comment-205309 Thu, 28 Jul 2016 21:06:48 +0000 http://biostatmatt.com/?p=2902#comment-205309 What about: 0.335, 0.335, 0.33 - in this case rounded numbers result in 101% and a longer series of up-rounded numbers could be much more.

]]>
Comment on Round values while preserve their rounded sum in R by BioStatMatt https://biostatmatt.com/archives/2902/comment-page-1#comment-205302 Thu, 28 Jul 2016 18:46:07 +0000 http://biostatmatt.com/?p=2902#comment-205302 In reply to Carl Witthoft.

"But may I ask: why did you round any variable prior to processing?"

The rounding discussed here occurs at the presentation stage (after any other processing). I agree that the greatest practical precision (e.g., double floating point precision) should be used until then.

]]>
Comment on Round values while preserve their rounded sum in R by Carl Witthoft https://biostatmatt.com/archives/2902/comment-page-1#comment-205298 Thu, 28 Jul 2016 18:28:40 +0000 http://biostatmatt.com/?p=2902#comment-205298 Most folks just include the standard disclaimer "does not sum to 100% due to rounding error" and move on 🙂 . But may I ask: why did you round any variable prior to processing? That was one of the first lessons we got in undergrad physics: always carry at least two extra digits' precision until the end of the calculation. Never round in the middle.
I read thru the linked SO post and links therein, and it still looks to me like all of this is a kludge to "fix" poorly designed processing.

]]>
Comment on Round values while preserve their rounded sum in R by Round values while preserve their rounded sum in R – Mubashir Qasim https://biostatmatt.com/archives/2902/comment-page-1#comment-205289 Thu, 28 Jul 2016 15:17:34 +0000 http://biostatmatt.com/?p=2902#comment-205289 […] article was first published on R – BioStatMatt, and kindly contributed to […]

]]>