-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing new type hierarchy * intermediate commit * update reliability for PsychometricTest * implement ten berge mu * rename functions * remove unused dependencies * remove unused files * add compat entries * new reliability interface * refactor reliability * refactor lambda4 * add some docs * postpone PsychometricTests integration * increase precision in mu * update glb * import kwdef * remove unused deps * add basic precompilation
- Loading branch information
Showing
28 changed files
with
2,499 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
always_for_in = true | ||
short_to_long_function_def = true | ||
always_use_return = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
- '1.8' | ||
- 'nightly' | ||
os: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
/Manifest.toml | ||
.vscode | ||
.vscode | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,50 @@ | ||
# ClassicalTestTheory | ||
# ClassicalTestTheory.jl | ||
|
||
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://p-gw.github.io/ClassicalTestTheory.jl/stable) | ||
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://p-gw.github.io/ClassicalTestTheory.jl/dev) | ||
[![Build Status](https://github.com/p-gw/ClassicalTestTheory.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/p-gw/ClassicalTestTheory.jl/actions/workflows/CI.yml?query=branch%3Amain) | ||
[![Coverage](https://codecov.io/gh/p-gw/ClassicalTestTheory.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/p-gw/ClassicalTestTheory.jl) | ||
|
||
ClassicalTestTheory.jl is a Julia package for data analysis using [Classical Test Theory](https://en.wikipedia.org/wiki/Classical_test_theory#:~:text=It%20is%20a%20theory%20of,the%20reliability%20of%20psychological%20tests.). | ||
|
||
## Installation | ||
```julia | ||
] add https://github.com/p-gw/ClassicalTestTheory.jl.git | ||
``` | ||
|
||
## Getting started | ||
ClassicalTestTheory.jl provides two entry points to doing data analsis. | ||
The input data can either be a numeric `Matrix` or a [`PsychometricTest`](https://github.com/JuliaPsychometrics/PsychometricTests.jl). | ||
While `Matrix` methods provide full functionality, `PsychometricTest` methods provide some | ||
additional convenience such as scale analysis. | ||
For details on how to use ClassicalTestTheory.jl with `PsychometricTest` see [XXX](#). | ||
|
||
Consider some input data `x`, | ||
|
||
```julia-repl | ||
julia> n_persons = 100; | ||
julia> n_items = 8; | ||
julia> x = rand(0:100, n_persons, n_items); | ||
``` | ||
|
||
we can get some descriptive analysis of the items, | ||
|
||
```julia | ||
itemanalysis(x) | ||
``` | ||
|
||
or estimate the internal consistency (e.g. using Cronbach's alpha) | ||
|
||
```julia | ||
reliability(x, Alpha()) | ||
``` | ||
|
||
The package will automatically calculate the coefficient from the data and construct appropriate confidence intervals. | ||
|
||
To get multiple estimates of reliability just pass a vector of methods: | ||
|
||
```julia | ||
coefficients = [Alpha(), GLB(), Mu(2)] | ||
reliability(x, coefficients) | ||
``` |
Oops, something went wrong.