Skip to content

Commit

Permalink
Various tweaks to get reference to Feldt (1969) into getPdiff2alphas()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsyctc committed Nov 11, 2024
1 parent 1f1d620 commit 649510c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 15 deletions.
24 changes: 13 additions & 11 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: CECPfuns
Type: Package
Title: Package of Utility Functions for Psychological Therapies, Mental Health and Well-being Work (Created by Chris Evans and Clara Paz)
Version: 0.0.0.9055
Version: 0.0.0.9058
Maintainer: Chris Evans <chris@psyctc.org>
Description: This should evolve into a repository of all the functions that I (CE)
and Clara Paz (CP) have created (so far only CE!) and tested enough to
Expand All @@ -27,24 +27,26 @@ Encoding: UTF-8
LazyData: no
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RdMacros: mathjaxr
RdMacros: mathjaxr,
Rdpack
Imports:
mathjaxr,
clipr,
devtools,
dplyr,
ggplot2,
Hmisc,
lubridate,
magrittr,
mathjaxr,
methods,
quantileCI,
Rdpack,
readr,
rlang,
stringr,
tibble,
tidyr,
dplyr,
Hmisc,
methods,
tidyselect,
readr,
devtools,
quantileCI,
clipr
tidyselect
Remotes: hoehleatsu/quantileCI
Suggests:
stats,
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export(plotCIPearson)
export(plotCIProportion)
export(plotQuantileCIsfromDat)
export(whichSetOfN)
importFrom(Rdpack,reprompt)
importFrom(clipr,clipr_available)
importFrom(clipr,read_clip)
importFrom(clipr,write_clip)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 0.0.0.9058
Various tweaks to get reference to Feldt (1969) into getPdiff2alphas()

# Version 0.0.0.9057
Tweaks to man page for getPdiff2alphas()

# Version 0.0.0.9056
Added getPdiff2alphas()

Expand Down
10 changes: 8 additions & 2 deletions R/getPdiff2alphas.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#' @export
#'
#' @importFrom stats pf
#' @importFrom Rdpack reprompt
#'
#' @family p-value functions
#'
Expand Down Expand Up @@ -41,7 +42,9 @@
#' for most therapy measures that fit is very dubious and looking at alpha
#' values is a solid place to start.
#'
#' The maths comes from a 1969 paper by Feldt and is based on the assumption
#' The maths comes from a 1969 paper by Feldt
#' \insertCite{feldt_test_1969}{CECPfuns}
#' and is based on the assumption
#' that the population distributions (i.e. of the item scores) are all
#' Gaussian. I've used the more complicated derivation of the p value from
#' Feldt's paper as his simpler version is not robust for short measures.
Expand Down Expand Up @@ -76,9 +79,12 @@
#' ### sampling from a population (or populations) where the population
#' ### alpha values are the same
#'
#' @references
#' \insertAllCited{}
#'
#' @author Chris Evans
#' @section History/development log:
#' Created 21.xi.24 based on earlier SAS and S+ versions
#' Created 12.xi.24 based on earlier SAS and S+ versions
#'
getPdiff2alphas <- function(alpha1, alpha2, k, n1, n2) {
### program translated from SAS program I wrote, Feldt2.sas
Expand Down
11 changes: 11 additions & 0 deletions inst/REFERENCES.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@article{feldt_test_1969,
title = {A test of the hypothesis that cronbach's alpha or kuder-richardson coefficent twenty is the same for two tests},
volume = {34},
abstract = {An approximate statistical test is derived for the hypothesis that the reliability coefficients (Cronbach's α) associated with two measurement procedures are equal. Control of Type I error is investigated by comparing empirical sampling distributions of the test statistic with the theoretical model derived for it. The effect of platykurtosis in the test-score distribution on the test statistic is also considered.},
journal = {Psychometrika},
author = {Feldt, Leonard S.},
year = {1969},
keywords = {psychometrics, Cronbach's coefficient alpha, internal consistency, internal reliability, statistics, methodology, significance testing},
pages = {363--373},
file = {PDF:/home/chris/Zotero/storage/AEJII3X9/Feldt - A test of the hypothesis that cronbach's alpha or kuder-richardson coefficent twenty is the same for.pdf:application/pdf},
}
9 changes: 7 additions & 2 deletions man/getPdiff2alphas.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 649510c

Please sign in to comment.