Skip to content

Commit 8066ab2

Browse files
committed
Reliability
1 parent 9e4910d commit 8066ab2

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

docs/src/scalarstats.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ modes
7272
```@docs
7373
describe
7474
```
75+
76+
## Reliability Measures
77+
78+
```@docs
79+
cronbachalpha
80+
```

src/Statistics.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export std, stdm, var, varm, mean!, mean,
4444
fit, AbstractHistogram, Histogram, midpoints, norm, normalize, normalize!,
4545
# transformations
4646
unnormalize, unnormalize!,
47-
AbstractNormalization, MinMaxNormalization, ZScoreNormalization
47+
AbstractNormalization, MinMaxNormalization, ZScoreNormalization,
48+
# reliability.jl
49+
cronbachalpha, CronbachAlpha
4850

4951
include("common.jl")
5052
include("weights.jl")
@@ -60,6 +62,7 @@ include("rankcorr.jl")
6062
include("empirical.jl")
6163
include("hist.jl")
6264
include("transformations.jl")
65+
include("reliability.jl")
6366

6467
##### mean #####
6568

src/reliability.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Returns a `CronbachAlpha` object that holds:
3333
3434
# Example
3535
```jldoctest
36-
julia> using StatsBase
36+
julia> using Statistics
3737
3838
julia> cov_X = [10 6 6 6;
3939
6 11 6 6;

test/reliability.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using StatsBase
1+
using Statistics
22
using LinearAlgebra, Random, Test
33

44
@testset "Cronbach's Alpha" begin

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,4 +898,5 @@ include("ranking.jl")
898898
include("rankcorr.jl")
899899
include("empirical.jl")
900900
include("hist.jl")
901-
include("transformations.jl")
901+
include("transformations.jl")
902+
include("reliability.jl")

0 commit comments

Comments
 (0)