Code Monkey home page Code Monkey logo

apastats's Introduction

R functions for formatting results in APA style and other stuff

What is it?

Functions for APA-style formatting for statistical tests results in markdown or LaTeX and other miscellanous stuff.

Main functions

Function Description
describe.Anova Describe Anova results
describe.aov Describe aov results
describe.bf Describe BayesFactor results
describe.bimod.test Describe bimodality test results
describe.binom.mean.conf Describe mean and confidence intervals for binomial variable
describe.chi Describe $chi^2$ results
describe.dip.test Describe Hartigans' dip test results
describe.ezanova Describe ezANOVA results
describe.ezstats Describe ezStats results
describe.glm Describe regression model (GLM, GLMer, lm, lm.circular, ...)
describe.lht Describe linearHypothesis test results
describe.lmer Describe lmer results
describe.lmert Describe lmerTest results
describe.lmtaov Describe lmerTest anova results
describe.lsmeans Describe contrasts created by lsmeans
describe.mean.and.t Describe two-sample t-test with means and effect sizes
describe.mean.conf Describe mean and confidence intervals
describe.mean.sd Describe mean and SD
describe.r Describe Pearson test results
describe.roc.diff Describe differences between ROC curves
describe.ttest Describe t-test results

How to install?

install.packages("devtools")
devtools::install_github('achetverikov/apastats',subdir='apastats')
library(apastats)

How to use?

Most of the functions have names like "describe.something" where something is a name of statistical test or R function.

They take results of statistical test as input and provide a formatted output. So, for example, if you use repeated measures ANOVA, you can easily get something like "F(3, 54) = 516.61, p < .001" from ezANOVA results.

Methods included:

  • chi-squared
  • Pearson r
  • t-test
  • ANOVA, rm ANOVA
  • lm, glm, lmer

Additional functions:

  • plotting - pointrange plots with optional within-subject CIs; breaks-computing functions for Tufte-like plots
  • misc - drop.empty.cols() to drop empty columns from df, mymean() and mysd() for means and SDs without NA, lengthu() for length(unique(x))

Some examples can be found here: https://github.com/achetverikov/apastats/blob/master/example/example.md and in help files.

Disclaimer

Everything is provided as is, contributions are welcome, authors of borrowed functions are mentioned in functions descriptions.

apastats's People

Contributors

achetverikov avatar ralfer avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.