Skip to contents
-
CECPfuns-package
CECPfuns
- CECPfuns: Package of Utility Functions for Psychological Therapies, Mental Health and Well-being Work (Created by Chris Evans and Clara Paz)
-
checkAllUnique()
- Function to check all values of a vector or data frame/tibble column are unique
-
classifyScoresVectorByRCI()
- Function to classify changes using the RCI paradigm
-
convert2CEdate()
convertToCEdate()
- Function to convert Dates to my date format strings
-
convertClipboardAuthorNames()
- Function to convert a number of 'Firstname Familyname' lines on the clipboard to 'Familyname, Firstname'
-
convertVector2sentence()
convertVectorToSentence()
- Function that converts a vector to an English language list: e.g. 1:3 becomes 1, 2 and 3
-
fixVarNames()
- Fix variable names e.g. YP1, YP2 ... YP10 to YP01, YP02 ... YP10
-
getAttenuatedR()
- Function that gives the attenuated R for an unattenuated R and two reliability values
-
getBootCICSC()
- Title Function designed for use in dplyr (tidyverse) piping to return CSC and bootstrap CI around that
-
getBootCICorr()
- Function to return observed correlation between two variables with bootstrap CI
-
getBootCIalpha()
- function returning observed Cronbach alpha with bootstrap confidence interval around that value
-
getBootCIgrpMeanDiff()
- Title Function designed for use in dplyr (tidyverse) piping to return mean diff and bootstrap CI around that
-
getBootCImean()
- Function to return bootstrap CI around observed mean
-
getCIPearson()
- Function to return parametric CI around observed Pearson correlation
-
getCISpearman()
- Function offering four methods to find the CI around an observed Spearman correlation
-
getCIforQuantiles()
- Function returns a tibble of quantiles and confidence interval of quantiles for a range of probabilities. '
-
getCSC()
- Function to return Jacobson (et al.) Clinically Significant Change (CSC)
-
getChronbachAlpha()
- Simple function to return Cronbach's alpha
-
getCorrectedR()
- Function that gives the corrected R for an observed R and two reliability values
-
getICCfromMLM()
- Get ICC for levels in multilevel models
-
getNNA()
- Trivial function to count number of NA values in input
-
getNOK()
- Trivial function to count number of non-NA values in input
-
getPdiff2alphas()
- Gets the two-sided p value for the difference between two independent Cronbach alpha values
-
getRCIfromSDandAlpha()
- Function returns RCI given baseline score SD, reliability and confidence sought
-
getRelBySpearmanBrown()
- Function using the Spearman-Brown formula to predict reliability for new length or get length for desired reliability
-
getScoreFromItems()
- Title Function to convert a vector of item responses to a scale/measure score
-
hyphenateWords()
- Function to convert numbers to hyphenated (English) words, e.g. 87 to "eighty-seven"
-
isOneToOne()
checkIsOneToOne()
- Data checking function to check if the contents of two variables have a 1:1 mapping
-
lookupCSCgenderAndAge()
- Function using gender and age in input file, with a lookup, to get appropriate CSC values
-
plotBinconf()
plotCIProportion()
- Function outputting a plot of confidence interval around a proportion for a range of sample sizes
-
plotCIPearson()
- Function outputting a plot of confidence interval around a correlation for a range of sample sizes
-
plotQuantileCIsfromDat()
- Title Function that plots ecdf of a vector of values with quantiles marked with their CIs
-
whichSetOfN()
- Function that takes an index number and gives which sequential set of N it is in