Package: ufs 0.5.12

Gjalt-Jorn Peters

ufs: A Collection of Utilities

This is a new version of the 'userfriendlyscience' package, which has grown a bit unwieldy. Therefore, distinct functionalities are being 'consciously uncoupled' into different packages. This package contains the general-purpose tools and utilities (see the 'behaviorchange' package, the 'rosetta' package, and the soon-to-be-released 'scd' package for other functionality), and is the most direct 'successor' of the original 'userfriendlyscience' package. For example, this package contains a number of basic functions to create higher level plots, such as diamond plots, to easily plot sampling distributions, to generate confidence intervals, to plan study sample sizes for confidence intervals, and to do some basic operations such as (dis)attenuate effect size estimates.

Authors:Gjalt-Jorn Peters [aut, cre], Stefan Gruijters [ctb]

ufs_0.5.12.tar.gz
ufs_0.5.12.tar.gz(r-4.5-noble)ufs_0.5.12.tar.gz(r-4.4-noble)
ufs_0.5.12.tgz(r-4.4-emscripten)ufs_0.5.12.tgz(r-4.3-emscripten)
ufs.pdf |ufs.html
ufs/json (API)

# Install 'ufs' in R:
install.packages('ufs', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://gitlab.com/r-packages/ufs

Pkgdown site:https://ufs.opens.science

Datasets:
  • bfi - 25 Personality items representing 5 factors
  • testRetestSimData - TestRetestSimData is a simulated dataframe used to demonstrate the testRetestAlpha coefficient function.

3.33 score 3 packages 24 scripts 908 downloads 2 mentions 205 exports 71 dependencies

Last updated 10 months agofrom:775a56086e. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 05 2024
R-4.5-linuxNOTEDec 05 2024

Exports:%IN%A_VarghaDelaneyaipedjmvaiperjmvareColorsarrassociationMatrixassociationsDiamondPlotassociationsToDiamondPlotDfattenuate.dattenuate.rBAC_plotbiAxisDiamondPlotbiDimColorscarelessObjectcarelessReportcat0checkDataIntegritycheckPkgsCIMCIM_partialcohensdCIcomputeEffectSize_dcomputeEffectSize_etasqcomputeEffectSize_omegasqcomputeEffectSize_rcomputeEffectSize_vcomputeStatistic_chisqcomputeStatistic_fcomputeStatistic_rcomputeStatistic_tconfIntDconfintdjmvconfIntOmegaSqconfIntPropconfIntRconfintrjmvconfIntSDconfIntVconvert.b.to.tconvert.cer.to.dconvert.chisq.to.pconvert.chisq.to.Vconvert.cohensf.to.omegasqconvert.cohensfsq.to.omegasqconvert.d.to.eerconvert.d.to.logoddsconvert.d.to.nncconvert.d.to.rconvert.d.to.tconvert.d.to.U3convert.d.to.varianceconvert.eer.to.dconvert.etasq.to.cohensfconvert.etasq.to.rconvert.f.to.dconvert.f.to.etasqconvert.f.to.omegasqconvert.f.to.pconvert.fisherz.to.rconvert.logodds.to.dconvert.logodds.to.rconvert.means.to.dconvert.ncf.to.omegasqconvert.omegasq.to.cohensfconvert.omegasq.to.cohensfsqconvert.omegasq.to.fconvert.or.to.dconvert.or.to.rconvert.percentage.to.seconvert.r.to.dconvert.r.to.fisherzconvert.r.to.pconvert.r.to.tconvert.t.to.dconvert.t.to.pconvert.t.to.rconvert.V.to.rconvertToNumericcramersVdataShapedCohensddddescrdiamondCoordinatesdiamondPlotdisattenuate.ddisattenuate.rdomegaSqduoComparisonDiamondPlotescapeRegexexceptionalScoreexceptionalScoresexportToHTMLextractVarNamefa_failsafefaConfIntfactorLoadingDiamondCIplotfactorLoadingHeatmapfindShortestIntervalformatCIformatPvalueformatRgetDatgetDataggBarChartggBoxplotggDiamondLayerggEasyBarggEasyRidgeggPieggProportionPlotggqqggSaveheadingifelseObjinsertFigureCaptioninsertNumberedCaptioninsertTableCaptioninvertIteminvertItemsiqrOutlierirpplotis.evenis.nris.oddisTruekblXtraknitAndSaveknitFigmakeScalesmassConvertToNumericmeanConfIntmeansComparisonDiamondPlotmeansDiamondPlotmeansDiamondPlotjmvmeanSDtoDiamondPlotmultiResponsemultiResponsejmvmultiVarFreqnormalHistnormalityAssessmentnoZerooptsparallelSubscalespCohensdpdpdExtremepdIntervalpdMildpomegaSqpwr.bootESpwr.cohensdCIpwr.confIntdpwr.confIntProppwr.confIntRpwr.omegasqqCohensdqdqomegaSqquietGitLabUpdatequietRemotesInstallqVecrawDataDiamondLayerrbind_df_listrbind_dfsrCohensdrdregrInfluentialrepeatStrreportrepStrromegaSqsafeRequiresamplingDistributionscaleDiagnosisscaleDiagnosis_partialscaleStructurescaleStructure_partialscatterMatrixsetCaptionNumberingKnitrHooksetFigCapNumberingsetTabCapNumberingsharedSubStringsimDataSetspearmanBrownspearmanBrown_requiredLengthspearmanBrown_reversedstrToFilenamesuspectParticipantstestRetestAlphatestRetestCEStestRetestReliabilityuniDimColorsvarsToDiamondPlotDfvecTxtvecTxtBvecTxtMvecTxtQviridisPalettewrapVectorzotero_construct_export_callzotero_download_and_export_itemszotero_get_all_itemszotero_nr_of_items

Dependencies:base64encbslibcachemclicolorspacecpp11digestdiptestdplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2ggrepelggridgesglueGPArotationgridExtragtablehighrhtmltoolsisobandjquerylibjsonlitekableExtraknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmepanderpillarpkgconfigplyrpwrR6rappdirsRColorBrewerRcpprlangrmarkdownrmdpartialsrstudioapisassscalesstringistringrSuppDistssvglitesystemfontstibbletidyselecttinytexutf8vctrsviridisLitewithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Case insensitive version of %in%%IN%
Vargha & Delaney's AA_VarghaDelaney
Sample size for accuracy: daipedjmv
Sample size for accuracy: raiperjmv
Check whether elements of a vector are valid colorsareColors
Absolute Relative Risk and confidence intervalarr print.ufsARR
associationMatrixassociationMatrix pander.associationMatrix print.associationMatrix
A diamondplot with confidence intervals for associationsassociationsDiamondPlot associationsToDiamondPlotDf
Attenuate a Cohen's d estimate for unreliability in the continuous variableattenuate.d
Attenuate a Pearson's r estimate for unreliability in the measurementsattenuate.r
Bland-Altman Change plotBAC_plot
25 Personality items representing 5 factorsbfi bfi-data
Diamondplot with two Y axesbiAxisDiamondPlot
Create colours for a response scale for an itembiDimColors uniDimColors
Compute diagnostics for careless respondingcarelessObject
A report to help diagnosing careless responderscarelessReport
Concatenate to screen without spacescat0
Conveniently checking data integritycheckDataIntegrity
Check for presence of a packagecheckPkgs
Conceptual Independence MatrixCIM CIM_partial knit_print.CIM
The distribution of Cohen's _d_cohensdCI cohensDdistribution confIntD dCohensd dd pCohensd pd pdExtreme pdInterval pdMild pwr.cohensdCI pwr.confIntd qCohensd qd rCohensd rd
associationMatrix Helper FunctionsassociationMatrixESDefaults associationMatrixStatDefaults computeEffectSize_d computeEffectSize_etasq computeEffectSize_omegasq computeEffectSize_r computeEffectSize_v computeStatistic_chisq computeStatistic_f computeStatistic_r computeStatistic_t
Effect Size Confidence Interval: Cohens's dconfintdjmv
Confidence intervals for Omega SquaredconfIntOmegaSq print.confIntOmegaSq
Confidence intervals for proportions, vectorized over all argumentsconfIntProp
A function to compute a correlation's confidence intervalconfIntR
Effect Size Confidence Interval: Pearson's rconfintrjmv
Confidence interval for standard deviationconfIntSD
conversion functionsconvert convert.b.to.t convert.chisq.to.p convert.chisq.to.V convert.cohensf.to.omegasq convert.cohensfsq.to.omegasq convert.d.to.logodds convert.d.to.r convert.d.to.t convert.d.to.variance convert.etasq.to.cohensf convert.etasq.to.r convert.f.to.d convert.f.to.etasq convert.f.to.omegasq convert.f.to.p convert.fisherz.to.r convert.logodds.to.d convert.logodds.to.r convert.means.to.d convert.ncf.to.omegasq convert.omegasq.to.cohensf convert.omegasq.to.cohensfsq convert.omegasq.to.f convert.or.to.d convert.or.to.r convert.percentage.to.se convert.r.to.d convert.r.to.fisherz convert.r.to.p convert.r.to.t convert.t.to.d convert.t.to.p convert.t.to.r convert.V.to.r
Helper functions for Numbers Needed for Changeconvert.cer.to.d convert.d.to.eer convert.d.to.nnc convert.eer.to.d
Convert Cohen's d to U3convert.d.to.U3
Conveniently convert vectors to numericconvertToNumeric
Cramer's V and its confidence intervalconfIntV cramersV print.confIntV print.CramersV
normalityAssessment and samplingDistributiondataShape normalityAssessment pander.dataShape pander.normalityAssessment print.dataShape print.normalityAssessment samplingDistribution
descr (or descriptives)as.data.frame.descr descr descr.data.frame descr.default descriptives pander.descr print.descr
Basic ggplot2 diamond plot layer construction functionsdiamondCoordinates ggDiamondLayer rawDataDiamondLayer varsToDiamondPlotDf
Basic diamond plot construction functiondiamondPlot
Disattenuate a Cohen's d estimate for unreliability in the continuous variabledisattenuate.d
Disattentuate a Pearson's r estimate for unreliabilitydisattenuate.r
meansComparisonDiamondPlot and duoComparisonDiamondPlotduoComparisonDiamondPlot meansComparisonDiamondPlot
Escapes any characters that would have special meaning in a reqular expression.escapeBS escapeRegex
Find exceptional scoresexceptionalScore
Find exceptional scoresexceptionalScores
Exporting tables to HTMLexportToHTML
Extract variable namesextractVarName
Do factor-analysis, logging warnings and errorsfa_failsafe
Extract confidence bounds from psych's factor analysis objectfaConfInt
Two-dimensional visualisation of factor analysesfactorLoadingDiamondCIplot
Two-dimensional visualisation of factor analysesfactorLoadingHeatmap
Find the shortest intervalfindShortestInterval
Pretty formatting of confidence intervalsformatCI
Pretty formatting of _p_ valuesformatPvalue
Pretty formatting of correlation coefficientsformatR
Use a dialog to load data from an SPSS filegetDat getData
Bar chart using ggplotggBarChart
Box plot using ggplotggBoxplot
Convenience functions for ggplots based on multiple variablesggEasyBar ggEasyPlots ggEasyRidge
A ggplot pie chartggPie
Sample distribution based plotting of proportionsggProportionPlot grid.draw.ggProportionPlot print.ggProportionPlot
Easy ggplot Q-Q plotggqq
Save a ggplot with specific defaultsggSave
Print a headingheading
Conditional returning of an objectifelseObj
Insert numbered captioninsertFigureCaption insertNumberedCaption insertTableCaption
invertItemsinvertItem invertItems
Identify outliers according to the IQR criterioniqrOutlier
Visualising individual response patternsirpplot
'NULL' and 'NA' 'proof' checking of whether something is a numberis.nr
Checking whether numbers are odd or evenis.even is.odd
More flexible version of isTRUEisTrue
Wrapper for kableExtra for consistent 'ufs' table stylingkblXtra
knitAndSaveknitAndSave
Easily knit a custom figure fragmentknitFig
TitlemakeScales
Converting many dataframe columns to numericmassConvertToNumeric
A confidence interval for the meanmeanConfInt print.meanConfInt
Diamond plotsmeansDiamondPlot
Diamond plot: meansmeansDiamondPlotjmv
A diamond plot based on means, standard deviations, and sample sizesmeanSDtoDiamondPlot
Generate a table for multiple response questionsmultiResponse
Multi ResponsemultiResponsejmv
Generate a table collapsing frequencies of multiple variablesmultiVarFreq
normalHistnormalHist print.normalHist
Remove one or more zeroes before the decimal pointnoZero
Options for the ufs packageget opts reset set
Split a dataset into two parallel halvesparallelSubscales print.parallelSubscales
The distribution of Omega SquareddomegaSq pomegaSq qomegaSq romegaSq
Estimate required sample size for accuracy in parameter estimation using bootESpwr.bootES
Estimate required sample size for accuracy in parameter estimation of a proportionpwr.confIntProp
Determine required sample size for a given confidence interval width for Pearson's rpwr.confIntR
Power calculations for Omega Squared.print.pwr.omegasq pwr.omegasq
Quietly update a package from a remote repositoryquietGitLabUpdate quietRemotesInstall
Convenience function to quickly copy-paste a vectorqVec qVecSum
Bind lots of dataframes together rowwiserbind_df_list
Simple alternative for rbind.fill or bind_rowsrbind_dfs
Detecting influential cases in regression analysesprint.regrInfluential regrInfluential
Repeat a string a number of timesrepeatStr repStr
Output report from resultsreport report.default
Load a package, install if not availablesafeRequire
scaleDiagnosisknit_print.scaleDiagnosis print.scaleDiagnosis scaleDiagnosis scaleDiagnosis_partial
scaleStructureknit_print.scaleStructure print.scaleStructure scaleReliability scaleStructure scaleStructurePartial scaleStructure_partial
scatterMatrixprint.scatterMatrix scatterMatrix
Set a knitr hook for caption numberingsetCaptionNumberingKnitrHook setFigCapNumbering setTabCapNumbering
sharedSubStringsharedSubString
Simulate a datasetsimDataSet
Spearman-Brown formulaspearmanBrown spearmanBrown_requiredLength spearmanBrown_reversed
Convert a string to a safe filenamestrToFilename
Selects suspect participants from a 'carelessObject'suspectParticipants
Test-Retest Alpha Coefficientprint.testRetestAlpha testRetestAlpha
Test-Retest Coefficient of Equivalence & Stabilityprint.testRetestCES testRetestCES
testRetestReliabilityprint.testRetestReliability testRetestReliability
testRetestSimData is a simulated dataframe used to demonstrate the testRetestAlpha coefficient function.testRetestSimData
Easily parse a vector into a character valuevecTxt vecTxtB vecTxtM vecTxtQ
Convenience function to get 2-7 color viridis palettesviridisPalette
Wrap all elements in a vectorwrapVector
Construct the URL for a Zotero export callzotero_construct_export_call
Download and save all items in a public Zotero groupzotero_download_and_export_items
Get all items in a public Zotero groupzotero_get_all_items
Get number of items in a public Zotero groupzotero_nr_of_items