Learn R Programming

⚠️There's a newer version (1.4.3) of this package.Take me there.

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")
library(devtools)

install_github("JWiley/JWileymisc")

To get the version on cran:


install.packages("JWileymisc")

Copy Link

Version

Install

install.packages('JWileymisc')

Monthly Downloads

1,498

Version

1.2.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua F Wiley

Last Published

August 31st, 2020

Functions in JWileymisc (1.2.0)

VAConverter

Visual Acuity Converter
VAObject-class

An S4 class to hold visual acuity data
.fround

Function to round and format a number
TukeyHSDgg

Tukey HSD Plot
cramerV

Calculate Phi or Cramer's V effect size
SEMSummary.fit

Summary Statistics for a SEM Analysis
corOK

Return a non-missing correlation matrix
meanCircular

Calculate a Circular Mean
lm2

Modified lm() to use a specified design matrix
findSigRegions

Function to find significant regions from an interaction
internalcompareIV

Compares the effects of various independent variables
formatHtest

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

Heatmap of a Correlation Matrix
moments

Estimate the first and second moments
compareIVs

Compares the effects of various independent variables on dependent variables
VASummaryObject-class

An S4 class to hold visual acuity summary data
APAStyler.lm

APAStyler method for linear models
plot.SEMSummary.list

Plots SEMSummary.list object
modelDiagnostics

Model Diagnostics Functions
plot.SEMSummary

Plots SEMSummary object
residualDiagnostics

Residual Diagnostics Functions
testDistribution

Test the distribution of a variable against a specific distribution
modelCompare

Compare Two Models
naz.omit

Missing and Zero Character Omit
aces_daily

Multilevel Daily Data Example
internalformulaIt

Internal function to create a formula
plot.testDistribution

Plot method for testDistribution objects
internalrunIt

Internal function to run a model using gam()
vainternal

Internal Visual Acuity Functions
timeshift

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

Winsorize at specified percentiles
star

Function to simplify converting p-values to asterisks
smd

Calculate Standardized Mean Difference (SMD)
cor2cov

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

Function to find significant regions from an interaction
egltable

Function makes nice tables
.quantilePercentiles

Internal Function to Calculate Quantiles
gglikert

Creates a plot for likert scale
param_summary

Calculates summaries for a parameter
param_summary_format

Format a data frame of summary statistics
as.na

Coerces vectors to missing
plot.modelDiagnostics.lm

Plot Diagnostics for an lm model
lagk

Create a lagged variable
cd

Change directory
empirical_pvalue

Calculates an empirical p-value based on the data
plot.residualDiagnostics

Plot Residual Diagnostics Default Method
modelPerformance

Return Indices of Model Performance
formatMedIQR

Function to format the median and IQR of a variable
formatPval

Function to simplify formatting p-values for easy viewing / publication
f.r2

Calculate F and p-value from the R2
modelTest

Detailed Tests on Models
roundedfivenum

Calculate a rounded five number summary
scoring

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

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

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

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

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

Calculate R2 Values
SEMSummary

Summary Statistics for a SEM Analysis
CheckVals

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

APAStyler method for lists
APAStyler.modelTest.vglm

APAStyler method for model tests from a vglm multinomial model