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

999

Version

1.4.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 5th, 2023

Functions in JWileymisc (1.4.1)

as.na

Coerces vectors to missing
TukeyHSDgg

Tukey HSD Plot
.fround

Function to round and format a number
VAObject-class

An S4 class to hold visual acuity data
.quantilePercentiles

Internal Function to Calculate Quantiles
cramerV

Calculate Phi or Cramer's V effect size
compareIVs

Compares the effects of various independent variables on dependent variables
compressed RDS

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

Multilevel Daily Data Example
VASummaryObject-class

An S4 class to hold visual acuity summary data
egltable

Function makes nice tables
corplot

Heatmap of a Correlation Matrix
SEMSummary.fit

Summary Statistics for a SEM Analysis
intSigRegGraph

Function to find significant regions from an interaction
hashDataset

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

Change directory
formatHtest

Function to format the reuslts of a hypothesis test as text
plot.SEMSummary.list

Plots SEMSummary.list object
moments

Estimate the first and second moments
modelTest

Detailed Tests on Models
diffCircular

Calculate the Circular Difference
plot.modelDiagnostics.lm

Plot Diagnostics for an lm model
smd

Calculate Standardized Mean Difference (SMD)
scoring

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

Function to find significant regions from an interaction
is.naz

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

Calculates an empirical p-value based on the data
corOK

Return a non-missing correlation matrix
f.r2

Calculate F and p-value from the R2
internalrunIt

Internal function to run a model using gam()
cor2cov

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

Modified lm() to use a specified design matrix
gglikert

Creates a plot for likert scale
timeshift

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

Calculate a Circular Mean
vainternal

Internal Visual Acuity Functions
formatMedIQR

Function to format the median and IQR of a variable
lagk

Create a lagged variable
naz.omit

Missing and Zero Character Omit
formatPval

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

Residual Diagnostics Functions
roundedfivenum

Calculate a rounded five number summary
modelCompare

Compare Two Models
param_summary

Calculates summaries for a parameter
.allmissing

Determine which if any variables are all missing in a dataset
star

Function to simplify converting p-values to asterisks
internalcompareIV

Compares the effects of various independent variables
plot.SEMSummary

Plots SEMSummary object
param_summary_format

Format a data frame of summary statistics
styledescriptives

Several internal functions to style descriptive statistics
internalformulaIt

Internal function to create a formula
winsorizor

Winsorize at specified percentiles
plot.testDistribution

Plot method for testDistribution objects
modelPerformance

Return Indices of Model Performance
modelDiagnostics

Model Diagnostics Functions
plot.residualDiagnostics

Plot Residual Diagnostics Default Method
styletests

Several internal functions to style inference tests
testDistribution

Test the distribution of a variable against a specific distribution
APAStyler.mira

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

Calculate R2 Values
CheckVals

Score a set of items to create overall scale score
APAStyler.lm

APAStyler method for linear models
APAStyler

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

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

APAStyler method for lists
APAStyler.modelTest.lm

APAStyler method for model tests from a linear model
APAStyler.SEMSummary

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

Visual Acuity Converter
SEMSummary

Summary Statistics for a SEM Analysis