Learn R Programming

JWileymisc

An R package with general utility and convenience functions. Some of these are general functions that help using and exploring SEM style data. Others are more specific. This package has grown out of my own work, and is often to automate repetitive tasks. See the Vignettes, listed under the "Articles" menu item for description and examples using some of the more interesting functions from the package.

Installation

To get the latest development version, use:


#install.packages("devtools")

devtools::install_github("JWiley/JWileymisc")

To get the version on CRAN:


install.packages("JWileymisc")

Copy Link

Version

Install

install.packages('JWileymisc')

Monthly Downloads

1,344

Version

1.4.3

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua F Wiley

Last Published

April 13th, 2025

Functions in JWileymisc (1.4.3)

APAStyler.modelTest.vglm

APAStyler method for model tests from a vglm multinomial model
APAStyler.list

APAStyler method for lists
CheckVals

Score a set of items to create overall scale score
.fround

Function to round and format a number
.quantilePercentiles

Internal Function to Calculate Quantiles
VASummaryObject-class

An S4 class to hold visual acuity summary data
aces_daily

Multilevel Daily Data Example
SEMSummary.fit

Summary Statistics for a SEM Analysis
cd

Change directory
gglikert

Creates a plot for likert scale
APAStyler.lm

APAStyler method for linear models
compareIVs

Compares the effects of various independent variables on dependent variables
egltable

Function makes nice tables
intSigRegGraph

Function to find significant regions from an interaction
hashDataset

Create a character vector or file hash of a dataset and each variable
empirical_pvalue

Calculates an empirical p-value based on the data
VAConverter

Visual Acuity Converter
lm2

Modified lm() to use a specified design matrix
meanCircular

Calculate a Circular Mean
cor2cov

Convert a correlation matrix and standard deviations to a covariance matrix
TukeyHSDgg

Tukey HSD Plot
modelPerformance

Return Indices of Model Performance
modelTest

Detailed Tests on Models
plot.testDistribution

Plot method for testDistribution objects
corOK

Return a non-missing correlation matrix
moments

Estimate the first and second moments
f.r2

Calculate F and p-value from the R2
findSigRegions

Function to find significant regions from an interaction
modelCompare

Compare Two Models
naz.omit

Missing and Zero Character Omit
compressed RDS

Save and read RDS functions for using multithreaded “ZSTD” or “LZ4” compression
corplot

Heatmap of a Correlation Matrix
timeshift

Shift a time variable to have a new center (zero point)
residualDiagnostics

Residual Diagnostics Functions
cramerV

Calculate Phi or Cramer's V effect size
vainternal

Internal Visual Acuity Functions
internalcompareIV

Compares the effects of various independent variables
modelDiagnostics

Model Diagnostics Functions
testDistribution

Test the distribution of a variable against a specific distribution
theme_tufte

Tufte Inspired Theme
plot.SEMSummary

Plots SEMSummary object
VAObject-class

An S4 class to hold visual acuity data
diffCircular

Calculate the Circular Difference
plot.modelDiagnostics.lm

Plot Diagnostics for an lm model
.allmissing

Determine which if any variables are all missing in a dataset
plot.residualDiagnostics

Plot Residual Diagnostics Default Method
formatPval

Function to simplify formatting p-values for easy viewing / publication
formatMedIQR

Function to format the median and IQR of a variable
geom_tufterange

Tufte Range
internalrunIt

Internal function to run a model using gam()
formatHtest

Function to format the reuslts of a hypothesis test as text
internalformulaIt

Internal function to create a formula
plot.SEMSummary.list

Plots SEMSummary.list object
smd

Calculate Standardized Mean Difference (SMD)
roundedfivenum

Calculate a rounded five number summary
star

Function to simplify converting p-values to asterisks
scoring

Score a set of items to create overall scale score - generic
winsorizor

Winsorize at specified percentiles
is.naz

Is a variable missing, non finite or zero length character?
lagk

Create a lagged variable
param_summary

Calculates summaries for a parameter
styletests

Several internal functions to style inference tests
param_summary_format

Format a data frame of summary statistics
styledescriptives

Several internal functions to style descriptive statistics
SEMSummary

Summary Statistics for a SEM Analysis
R2

Calculate R2 Values
APAStyler.mira

A generic function for pretty printing in (semi) APA Style
APAStyler

A generic function for pretty printing in (semi) APA Style
as.na

Coerces vectors to missing
APAStyler.SEMSummary

A generic function for pretty printing in (semi) APA Style
APAStyler.modelTest.lm

APAStyler method for model tests from a linear model