PowerAnalyses

Statistical power analyses in Julia

https://github.com/rikhuijzer/poweranalyses.jl

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary

Keywords

julia julia-lang power statistics

Keywords from Contributors

standardization hack
Last synced: 6 months ago · JSON representation ·

Repository

Statistical power analyses in Julia

Basic Info
Statistics
  • Stars: 16
  • Watchers: 5
  • Forks: 2
  • Open Issues: 5
  • Releases: 9
Topics
julia julia-lang power statistics
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

PowerAnalyses.jl

CI Test Documentation

Statistical power analyses in Julia

Installation

```julia using Pkg

Pkg.add("PowerAnalyses") ```

Introduction

Statistical power is the probability that a test will correctly indicate an effect when there is one. In other words, it is the inverse of making a Type II error (false negative) β: power = 1 - β.

The priorities of this package are as follows:

  1. make it easy for anyone to run a power analysis; even for people who never used the Julia programming language before and
  2. don't overuse Unicode symbols (it is unreasonable to expect that everyone can easily type Unicode)

Validity

For each test in this package, the result provided by this package is verified by comparing it to either G*Power or pwr see test/runtests.jl for details.

Usage

The package defines get_alpha, get_power, get_es and get_n. For example, to get the required sample size n for an effect size es of 0.5, power of 0.95 and significance level alpha of 0.05 for a one sample t-test use:

```julia julia> using PowerAnalyses

julia> es = 0.5 0.5

julia> alpha = 0.05 0.05

julia> power = 0.95 0.95

julia> n = getn(OneSampleTTest(twotails); alpha, power, es) 53.941 ```

This number is the same as what you would get via G*Power.

For fun. We can now try to get the original alpha back by passing n to get_alpha:

julia julia> get_alpha(OneSampleTTest(two_tails); power, n, es) 0.049999999999997824

Close enough.

See https://poweranalyses.jl.huijzer.xyz for more information.

Owner

  • Name: Rik Huijzer
  • Login: rikhuijzer
  • Kind: user

Citation (CITATION.cff)

cff-version: "1.2.0"
authors:
  - family-names: Huijzer
    given-names: Rik
    orcid: "https://orcid.org/0000-0001-9445-8466"
title: "PowerAnalyses.jl"
date-released: 2021-10-24
url: "https://github.com/rikhuijzer/PowerAnalyses.jl"

GitHub Events

Total
Last Year

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 84
  • Total Committers: 4
  • Avg Commits per committer: 21.0
  • Development Distribution Score (DDS): 0.071
Past Year
  • Commits: 3
  • Committers: 1
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Rik Huijzer r****r@p****e 78
Andreas Noack a****s@n****k 3
github-actions[bot] 4****] 2
john verzani j****i@g****m 1
Committer Domains (Top 20 + Academic)
noack.dk: 1 pm.me: 1

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 6
  • Total pull requests: 21
  • Average time to close issues: 4 months
  • Average time to close pull requests: 8 days
  • Total issue authors: 5
  • Total pull request authors: 4
  • Average comments per issue: 2.83
  • Average comments per pull request: 0.33
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 1
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: about 9 hours
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • rikhuijzer (2)
  • jverzani (1)
  • JuliaTagBot (1)
  • PharmCat (1)
  • jrenoux (1)
Pull Request Authors
  • rikhuijzer (17)
  • andreasnoack (5)
  • github-actions[bot] (2)
  • jverzani (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • julia 24 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 9
juliahub.com: PowerAnalyses

Statistical power analyses in Julia

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 24 Total
Rankings
Dependent repos count: 9.9%
Stargazers count: 25.8%
Average: 28.8%
Dependent packages count: 38.9%
Forks count: 40.4%
Last synced: 7 months ago

Dependencies

.github/workflows/CI.yml actions
  • actions/checkout v2 composite
  • julia-actions/cache v1 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-runtest v1 composite
  • julia-actions/setup-julia v1 composite
.github/workflows/CompatHelper.yml actions
  • rikhuijzer/compathelper-action rh/use-setup-julia composite
.github/workflows/Docs.yml actions
  • actions/checkout v2 composite
  • webfactory/ssh-agent v0.5.4 composite
.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite