Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ezStats: requested addition of confidence intervals over the mean #45

Open
karlosluna opened this issue Oct 13, 2015 · 2 comments
Open

Comments

@karlosluna
Copy link

Nowadays confidence intervals (CIs) are requested in most journals of experimental psychology. It would be nice to see them in ezStats. The usual CI is 95%, but, if you decide so, you may add a new option so users can select their preferred level.

I created my own function to easily calculate CIs, but I do not know how to incorporate it into you code. I left it here in case that it helps.
sem = SD/sqrt(N) # Compute the Standard Error of the Mean; SD = standard deviation; N = N
error = qt(0.975,df=N-1)*sem
ci.hi = med + error # Upper limit of the CI
ci.lo = med - error # Lower limit of the CI

@mike-lawrence
Copy link
Owner

The CI for a mean is rarely a practical value. Particularly in cases when a variable is manipulated within-Ss, where such CIs sum both variance of the effect and variance of the Ss' intercepts. ezStats gives the N and SD for those that really want to compute these CIs by hand. Note that ezStats also gives the FLSD, which is more useful as it derives its value from the associated ANOVA thereby removing sources of variance that aren't (typically) of interest (like Ss' intercepts). Note also that the CI for an effect is FLSD/sqrt(2). Your suggestion for adding an argument to change the CI %, where it is currently hard-coded at 95%, is probably reasonable.

@karlosluna
Copy link
Author

Thanks for your answer and your time. Despite your arguments, CIs over the means are still usually requested, but you are right in that it is easy to compute them from the output of ezStats. I will do it for my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants