tag:blogger.com,1999:blog-987850932434001559.post5255982016181050608..comments2024-05-27T11:58:08.416+02:00Comments on The 20% Statistician: TOST equivalence testing R package (TOSTER) and spreadsheetDaniel Lakenshttp://www.blogger.com/profile/18143834258497875354noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-987850932434001559.post-11026650992376302562021-08-19T22:55:30.934+02:002021-08-19T22:55:30.934+02:00This comment has been removed by a blog administrator.Sierrahttps://www.blogger.com/profile/03567996321594716757noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-46347927142459754272021-05-18T20:37:59.470+02:002021-05-18T20:37:59.470+02:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/09461331771069334745noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-76981863479060814912021-02-09T06:20:03.264+01:002021-02-09T06:20:03.264+01:00This comment has been removed by a blog administrator.Fred Manarhttps://www.blogger.com/profile/10014600282274205870noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-72245489863438955792021-01-07T12:51:21.859+01:002021-01-07T12:51:21.859+01:00This comment has been removed by a blog administrator.Testing Instrumentshttps://www.blogger.com/profile/00135332607351600390noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-88888159848062194372020-12-30T09:06:12.732+01:002020-12-30T09:06:12.732+01:00This comment has been removed by a blog administrator.Marketing Experthttps://www.blogger.com/profile/04400550655343415525noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-62332668192820537152019-10-11T19:41:38.519+02:002019-10-11T19:41:38.519+02:00Thank you for the wonderful package.
Is there a g...Thank you for the wonderful package.<br /><br />Is there a good way to determine equivalence margins?Anonymoushttps://www.blogger.com/profile/11008284843134095666noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-41348114351340535502019-08-06T10:29:56.465+02:002019-08-06T10:29:56.465+02:00Hi Daniel,
This might be a lame question, but you...Hi Daniel,<br /><br />This might be a lame question, but your answer would be of immense help. <br /><br />Can i conduct a equivalence test for a one-proportions test?<br /><br />for example, i have binomial outcome variable from an experiment in which participants answered yes or no (example: yes=60, no = 40; N =100). Where p is proportions of people who answered yes. My hypothesis is:<br /><br />H0: p=0.5<br />H1: p>0.5.<br /><br />best, prasad<br />prasadhttps://www.blogger.com/profile/07017280705402230912noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-54911581876828109952018-04-14T22:41:23.568+02:002018-04-14T22:41:23.568+02:00Tosttwo set bound in d a tostdata in raw. Please N...Tosttwo set bound in d a tostdata in raw. Please NO questions here. Horrible way to communicate. Send an email or use github.Daniel Lakenshttps://www.blogger.com/profile/18143834258497875354noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-54198908166679178632018-04-14T22:31:04.277+02:002018-04-14T22:31:04.277+02:00Maybe it's a stupid question, but why don'...Maybe it's a stupid question, but why don't I get the same results when I use "TOSTtwo" and "dataTOSTtwo"?<br /><br />Here the example code:<br /><br /># Illustration of 1.5 sigma distibution difference<br /><br />n <- 10<br />test_mean <- 20<br />test_sd <- 3<br /><br />Biosimilar <- rnorm(n,test_mean,test_sd)<br />Reference <- rnorm(n,test_mean,test_sd)<br /><br />equiv.margin <- sd(Reference)*1.5<br /><br />Sample <- c(rep("Biosimilar",length(n)),<br /> rep("Reference",length(n)))<br />Values <- c(Biosimilar,<br /> Reference)<br /><br />TOSTtwo(m1=mean(Biosimilar),<br /> m2=mean(Reference),<br /> sd1=sd(Biosimilar),<br /> sd2=sd(Reference),<br /> n1=length(Biosimilar),<br /> n2=length(Reference),<br /> low_eqbound_d=-1.5,<br /> high_eqbound_d=1.5<br /> )<br /><br />df <- data.frame(Sample, Values)<br /><br />dataTOSTtwo(df, deps="Values", group="Sample", var_equal = FALSE, low_eqbound = -1.5,<br /> high_eqbound = 1.5, alpha = 0.05, desc = TRUE, plots = TRUE)<br />Anonymoushttps://www.blogger.com/profile/05386301080386949171noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-73836656823704951222017-05-16T13:55:49.068+02:002017-05-16T13:55:49.068+02:00Alright, thanks for your quick response!Alright, thanks for your quick response!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-3428518619333929902017-05-16T13:55:23.384+02:002017-05-16T13:55:23.384+02:00This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-12531255082551209892017-05-15T13:39:46.074+02:002017-05-15T13:39:46.074+02:00Hi, no, there are no ANOVA functions yet. If it be...Hi, no, there are no ANOVA functions yet. If it becomes popular, I might work out functions for it, or (even better) someone else might want to do that work.Daniel Lakenshttps://www.blogger.com/profile/18143834258497875354noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-8150688370089638832017-05-15T12:41:45.300+02:002017-05-15T12:41:45.300+02:00Hi Daniel, is there any way to control for covaria...Hi Daniel, is there any way to control for covariates using this package?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-90211962630096642052017-05-06T15:59:58.997+02:002017-05-06T15:59:58.997+02:00Hi Daniel,
thanks a lot for the package!
I have s...Hi Daniel,<br />thanks a lot for the package!<br /><br />I have samples that are not normally distributed and they have different sizes so it would be great if you could clarify how I could perform the equivalence test using the 90% CI approach. I read that in R it's possible to use the wilcox.test to do that but I don't have completely clear how.<br /><br />Thanks a lot.<br />AlessandroAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-51568226669919092792017-02-24T11:45:43.789+01:002017-02-24T11:45:43.789+01:00Thank you!!!
EnricoThank you!!!<br /><br />EnricoEnrico Glereanhttps://www.blogger.com/profile/16674832915668714617noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-33980430465458071442017-02-24T11:33:28.078+01:002017-02-24T11:33:28.078+01:00Yes, it should be possible - either take the 90% C...Yes, it should be possible - either take the 90% CI approach, or use dedicated software: https://ncss-wpengine.netdna-ssl.com/wp-content/themes/ncss/pdf/Procedures/NCSS/Testing_Equivalence_with_Two_Independent_Samples.pdf - might program it into the package in the future!Daniel Lakenshttps://www.blogger.com/profile/18143834258497875354noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-54827849002343792552017-02-24T10:54:17.588+01:002017-02-24T10:54:17.588+01:00Thank you for this! It has been very useful in a p...Thank you for this! It has been very useful in a paper we are finalising. Quick question: is there a TOST equivalent for Likert-type data (e.g. sign rank test instead of t-test)? Would it be enough to convert likert scores to ranks?<br /><br />Here something similar I have found: http://stats.stackexchange.com/questions/52897/equivalence-tests-for-non-normal-data<br /><br />Enrico Glerean, www.glerean.comEnrico Glereanhttps://www.blogger.com/profile/16674832915668714617noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-765685965375235572017-01-21T09:00:57.124+01:002017-01-21T09:00:57.124+01:00Hi Regis, yes, I discussed this online, but there ...Hi Regis, yes, I discussed this online, but there is, as far as I know, no formula for Cohen's d for a Welch's test. So we are left with an unsatisfactory situation of having to standardize in a perhaps not ideal way, but I also would not know what is better. Can you email me about this - I'd love to chat more, and given your interest in the R code, you might have good ideas of how to improve this? Daniel Lakenshttps://www.blogger.com/profile/18143834258497875354noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-12572994520686308222017-01-21T01:07:32.871+01:002017-01-21T01:07:32.871+01:00Thanks so much for developing this package and tho...Thanks so much for developing this package and thoroughly explaining its use in your paper! I've been using a homegrown function for the TOST, but hadn't taken into account using the Welch test when variances are unequal and I'm appreciative of your package/paper bringing this to my attention. <br /><br />I looked through the code on GitHub and I was wondering why when var.equal=F you are using the root mean square standard deviation formula to set the equivalence boundaries since I believe this assumes equal sample sizes.Regisnoreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-82625657272320539562017-01-09T03:58:15.699+01:002017-01-09T03:58:15.699+01:00Hiya Daniel,
So there's something that puzzle...Hiya Daniel,<br /><br />So there's something that puzzled me over the Christmas break and I wondered if you might want to weigh in. I noticed that on Twitter you've said a couple of supportive things about Neyman-Pearson testing, and it sounds like this is your preferred approach to significance testing?<br /><br />The thing is, in my understanding of Neyman-Pearson testing (e.g., http://journals.sagepub.com/doi/abs/10.1177/0959354312465483), you *can* accept (and not just fail to reject) H0, provided that power is high and p > alpha. This stands in contrast to Fisherian NHST, where you can never accept or support H0.<br /><br />In other words... it seems to me that equivalence testing is the solution to a problem that Neyman-Pearson testing doesn't actually have (well, if you have enough power anyway). There are complications of convention in the sense that the typical target Type 2 error rate is 20% whereas we might want it to be less than that if we want to provide convincing evidence for H0, but in principle... NP alone has the tools to support a null.<br /><br />So anyhow: Is your understanding of NP testing different than mine? If not, are there pragmatic reasons why you think equivalence testing is necessary even for someone working in an NP framework?Matthttps://www.blogger.com/profile/15143483413289978878noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-71425324540804103982016-12-10T10:33:51.638+01:002016-12-10T10:33:51.638+01:00Hi, the TOST procedure is the same as using 90%CI ...Hi, the TOST procedure is the same as using 90%CI - but for some conceptual differences, see the pre-print. <br /><br />You don't want to say values outside the 90% CI are not equivalent - because there you are testing against 0. See the pre-print for the explanation how studies can be significant AND equivalent. <br /><br />Yes, the output could be in Cohen's d, but I carefully chose not to do this. You might not have noticed, but setting equivalence bounds in Cohen's d is actually the new thing in my implementation of equivalence tests. Just a tiny change, but it will make it more intuitive for psychologists. However, some people worry about using standardized effect sizes, and raw differences are easier to interpret, and arguably, it should be the goal to express all effects in raw scales. So, you can set the equivalence bounds in d, but I give feedback in raw scale units. But, if more people prefer CI around d, I might provide these as well in a future update.Daniel Lakenshttps://www.blogger.com/profile/18143834258497875354noreply@blogger.comtag:blogger.com,1999:blog-987850932434001559.post-53676495143146038532016-12-10T04:43:44.548+01:002016-12-10T04:43:44.548+01:00This looks really cool... I might be biased becaus...This looks really cool... I might be biased because I enjoyed seeing some of my own work as the example (thanks). <br /><br />A couple of questions from a quick read:<br />* How does the TOST 90% CI relate to the NHST 95% CI? Meaning, if I recalculate the NHST CI at the 90% level, would it come out similar to the TOST CI? Is there any major difference in how they are interpreted?<br />* In the paper, Eileen and I reported the 95% CI for the standardized effect size (Cohen's d): d = -0.03, [-0.32, 0.26]. Again, for the purposes of the TOST test, we'd need a 90% CI. But otherwise is doing the TOST analysis similar to examining if the boundary is within this CI? Would it be right to say that any value outside this CI is non-equivalent? I feel like that's not quite the same, but I'm not understanding how.<br /><br />One top-of-the-head suggestion might be to have the package give the CIs in terms of standardized effects, since that's how the boundary conditions for non-equivalence are specified...feels easier to then compare them back to the boundary. I'm not sure if that's trivial to implement or not. <br /><br />Oh - and just wanted to point out a couple of things about the example study..the example study above is from what the paper labelled as Study 2, collected with MTurk participants. It was one of 3 replications conducted, the other two with live participants, and so the overall effect size obtained provided some pretty narrow boundaries on a plausible effect: d = 0.06, 95% CI[-0.14, 0.26]. These details are not at all essential to explaining this (cool) new R package... just wanted to point out that how we had approached estimating the boundaries for the proposed effect. <br /><br />Nice work!spaghetticodehttps://www.blogger.com/profile/16142046367319075700noreply@blogger.com