Package: petersenlab 1.1.0

Isaac T. Petersen

petersenlab: A Collection of R Functions by the Petersen Lab

A collection of R functions that are widely used by the Petersen Lab. Included are functions for various purposes, including evaluating the accuracy of judgments and predictions, performing scoring of assessments, generating correlation matrices, conversion of data between various types, data management, psychometric evaluation, extensions related to latent variable modeling, various plotting capabilities, and other miscellaneous useful functions. By making the package available, we hope to make our methods reproducible and replicable by others and to help others perform their data processing and analysis methods more easily and efficiently. The codebase is provided in Petersen (2024) <doi:10.5281/zenodo.7602890> and on CRAN: <doi:10.32614/CRAN.package.petersenlab>. The package is described in "Principles of Psychological Assessment: With Applied Examples in R" (Petersen, 2024) <doi:10.1201/9781003357421>, <doi:10.5281/zenodo.6466589>.

Authors:Isaac T. Petersen [aut, cre], Developmental Psychopathology Lab at the University of Iowa [ctb], Angela D. Staples [ctb], Johanna Caskey [ctb], Philipp Doebler [ctb], Loreen Sabel [ctb]

petersenlab_1.1.0.tar.gz
petersenlab_1.1.0.zip(r-4.5)petersenlab_1.1.0.zip(r-4.4)petersenlab_1.1.0.zip(r-4.3)
petersenlab_1.1.0.tgz(r-4.4-any)petersenlab_1.1.0.tgz(r-4.3-any)
petersenlab_1.1.0.tar.gz(r-4.5-noble)petersenlab_1.1.0.tar.gz(r-4.4-noble)
petersenlab_1.1.0.tgz(r-4.4-emscripten)petersenlab_1.1.0.tgz(r-4.3-emscripten)
petersenlab.pdf |petersenlab.html
petersenlab/json (API)

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

Peer review:

Bug tracker:https://github.com/devpsylab/petersenlab/issues

On CRAN:

data-analysisdata-analysis-in-rdata-managementpsychometrics

4.16 score 1 stars 1 scripts 478 downloads 95 exports 84 dependencies

Last updated 5 days agofrom:aa77eb06f3. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 18 2024
R-4.5-winOKNov 18 2024
R-4.5-linuxOKNov 18 2024
R-4.4-winOKNov 18 2024
R-4.4-macOKNov 18 2024
R-4.3-winOKNov 18 2024
R-4.3-macOKNov 18 2024

Exports:%ni%accuracyAtCutoffaccuracyAtEachCutoffaccuracyOveralladdTextapaattenuationCorrelationcleanUpNamescolumnBindFillcomplementcomputeItemFrequenciescomputeLifetimeFrequenciesconvert.magicconvertHoursAMPMconvertToHoursconvertToMinutesconvertToSecondscor.tablecrossTimeCorrelationcrossTimeCorrelationDFd_negBinomderiv_d_negBinomderiv_logd_negBinomdisattenuationCorrelationdiscriminationToFactorLoadingdropColsWithAllNAdropRowsWithAllNAequiv_chifourPLgetDependenciesimputationCombineimputationModelCompareimputationPRVinfo_neg_binom_analyticalitem_info_NB_zero_analyticalitemInformationkish_esslmCombinelmeSummaryload_or_installlog_gen_binommake_esem_modelmark_intensity_as_zeromeanSumModemortgagemy_loadings_sortermySumnomogrammernot_all_nanot_any_naoptimalCutoffpApAgivenBpAgivenNotBpartialcor.tablepBpBgivenApBgivenNotApercentEffortpercentileToTScorepersonMonthsplot2WayInteractionpomposttestOddsposttestProbabilityppPlotpucpValueread.aesrecode_intensityredcapProgressBarreliabilityIRTreliabilityOfDifferenceScorerepeatabilityreverse_scoresatorraBentlerScaledChiSquareDifferenceTestStatisticsemPlotInteractionsetLabPathsimulateAUCsimulateIndirectEffectspecify_decimalstandardErrorIRTsuppressLeadingZerotimesPerIntervaltimesPerLifetimeupdate_nestedvarsDifferentTypesvwRegwhdquantilewisdomOfCrowdwquantilewquantile_genericwrite.aeswthdquantile

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercolorspacedata.tableDBIdigestdplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2glueGPArotationgridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelavaanlifecyclemagrittrMASSMatrixmemoisemgcvmimemitoolsmixmnormtmunsellmvtnormnlmennetnumDerivpbivnormpillarpkgconfigplyrpsychpurrrquadprogR6rappdirsRColorBrewerRcppreshape2rlangrmarkdownrpartrstudioapisassscalesstringistringrtibbletidyselecttinytexutf8vctrsviridisviridisLitewithrxfunxtableyaml

Readme and manuals

Help Manual

Help pageTopics
NOTIN Operator.%ni%
Accuracy at a Given Cutoff.accuracyAtCutoff
Accuracy at Each Cutoff.accuracyAtEachCutoff
Overall Accuracy.accuracyOverall wisdomOfCrowd
Add Correlation to Scatterplot.addText
APA Formatapa
Attenuation of True Correlation Due to Measurement Error.attenuationCorrelation
Clean Up Player Names For Merging.cleanUpNames
Column Bind and Fill.columnBindFill
Simulate Complement Variable.complement
Convert Variable Types.convert.magic
Convert AM and PM Hours.convertHoursAMPM
Convert Time to Hours.convertToHours
Convert Time to Minutes.convertToMinutes
Convert Time to Seconds.convertToSeconds
Correlation Matrix.cor.table
Cross-Time Correlations.crossTimeCorrelation
Cross-Time Correlations Dataframe.crossTimeCorrelationDF
Item Information from Zero-Inflated Negative Binomial Model.deriv_d_negBinom deriv_logd_negBinom d_negBinom info_neg_binom_analytical item_info_NB_zero_analytical log_gen_binom
Disattenuation of Observed Correlation Due to Measurement Error.disattenuationCorrelation
Discrimination (IRT) to Standardized Factor Loading.discriminationToFactorLoading
Drop NA columns.dropColsWithAllNA
Drop NA rows.dropRowsWithAllNA
Chi-Square Equivalence Test for Structural Equation Models.equiv_chi
4-Parameter Logistic Curve.fourPL
Package Dependencies.getDependencies
Combine Results from Mixed Effect Imputation Models.imputationCombine
Compare Mixed Effect Imputation Models.imputationModelCompare
Proportional Reduction of Variance from Imputation Models.imputationPRV
NaN (Not a Number).is.nan.data.frame
Item Information.itemInformation
Weighted Quantiles.kish_ess whdquantile wquantile wquantile_generic wthdquantile
Combine Results from Multiple Regression Imputation Models.lmCombine
Summarize mixed effects model.lmeSummary
Load or Install Packages.load_or_install
Make ESEM Model.make_esem_model
Mean Sum.meanSum
Statistical Mode.Mode
Mortgage Principal and Interest.mortgage
Sorts loadings from exploratory factor analysis.my_loadings_sorter
My Sum.mySum
Create Nomogram.nomogrammer
Any Rows Not NA.not_all_na
Not Any NA.not_any_na
Optimal Cutoff.optimalCutoff
Bayes' Theorem.pA pAgivenB pAgivenNotB pB pBgivenA pBgivenNotA
Partial Correlation Matrix.partialcor.table
Person Months.percentEffort personMonths
Percentile to T-Score Conversion.percentileToTScore
Plot 2-way interaction.plot2WayInteraction
Proportion of Maximum (POM).pom
Posttest Odds & Probability.posttestOdds posttestProbability
PP Plot.ppPlot
Percent of Uncontaminated Correlations (PUC).puc
p-values.pValue
Read Encrypted Data.read.aes
Recode Intensity.mark_intensity_as_zero recode_intensity
Progress Bar for REDCap.redcapProgressBar
Reliability (IRT).reliabilityIRT
Reliability of Difference Score.reliabilityOfDifferenceScore
Repeatability.repeatability
Reverse Score Variables.reverse_score
Satorra-Bentler Scaled Chi-Square Difference Test Statistic.satorraBentlerScaledChiSquareDifferenceTestStatistic
Plot interaction from SEM model.semPlotInteraction
Set Lab Path.setLabPath
Simulate Area Under the ROC Curve (AUC).simulateAUC
Simulate Indirect Effect.simulateIndirectEffect
Specify Decimals.specify_decimal
Standard Error of Measurement (IRT).standardErrorIRT
Suppress Leading Zero.suppressLeadingZero
Frequency Per Duration.computeItemFrequencies computeLifetimeFrequencies timesPerInterval timesPerLifetime
Update Nested Models in Hierarchical Regression.update_nested
Identify Variables of Different Types.varsDifferentTypes
Visually Weighted Regression.vwReg
Write Encrypted Data.write.aes