jasp-stats / jaspttests Goto Github PK
View Code? Open in Web Editor NEWThe T-Tests Module
The T-Tests Module
As a result of the discussion on slack, we would like to change back to reporting mean differences and the resulting effect sizes. The PR we want to revert is (change from mean differences to location estimates) is
Parent is
When reverting back to mean differences it's good to consider
The idea is that the t-test should collapse to the z-test if the mu is exactly mean(x) and sigma is exactly sd(x). Code suggested by Johnny (requires the sd(x) in the code below to be changed by the postulated sigma from options).
So it seems that the BSDA package does not account for the test value in the CI for the z-test, which is why the CI in the bug report does not include the effect size. We can manually adjust this:
dat <- read.csv("~/Downloads/survey5ED.csv")
x <- na.omit(dat$tslfest)
testVal <- 30
t.test(x, mu = testVal)
wilcox.test(x, mu = testVal)
a <- BSDA::z.test(x, mu = testVal,
sigma.x = sd(x),
conf.level = 0.95)
a$statistic / sqrt(length(x)) # Effect Size
(a$conf.int - testVal) / sd(x) # CI that captures ES
It's worthwhile to derive the sampling distribution in terms of the parameter delta=(mu - mu0)/sigma to confirm that the proposed confidence interval is correct.
.BANOVAdependentName
and .BANOVAsubjectName
are not in jaspTTests, but they are in jaspAnova.
I originally moved .summarySE()
and summarySEwithin()
to this module to avoid circular dependencies between jaspAnova and jaspTTests.
Should a copy of these functions exist in both or do we reckon they're important enough to give a few hacky arguments?
@vandenman
"Warning in install.packages :
package ‘jaspTTests’ is not available for this version of R"
What version of R was this library developed under?
Hi Johnny,
Can you also do the following PR into this module?
https://github.com/jasp-stats/jasp-desktop/pull/4228
aka this repository
jasp-stats/jaspTTests
@TimKDJ that's correct isn't it?
Cheers,
Alexander
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.