Miscellaneous Utilities and Functions

A collection of miscellaneous tools and functions, such as tools to generate descriptive statistics tables, format output, visualize relations among variables or check distributions.


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.

To get the latest development version, use:

library(devtools)
 
install_github("JWiley/JWileymisc")

To get the version on cran:

install.packages("JWileymisc")

I do not have any vignettes or demos for this package. However, the functions are documented and I have included examples in the function documentation that are relatively basic. Below are just a few examples that I tend to use it for:

  • check the univariate distribution of a variable:
testdistr(mtcars$mpg, "normal")
  • check the distributions of a variables' residuals
testdistr(resid(lm(Petal.Length ~ Species, data = iris)), "normal")
  • check for multivariate normality
mvqq(iris[,-5])
  • view a heatmap of a correlation matrix
plot(SEMSummary(~ Petal.Length + Sepal.Length + Petal.Width + Sepal.Width, data = iris))

This package also has some utility functions used for other packages, such as calculating empirical p-values from bootstrapping or MCMC samples as from a Bayesian analysis, etc. These are probably less interesting to most users.

News

JWileymisc 0.2.1

  • testdistr() function to plot data against different theoretical distributions using ggplot2. A sort of generalized qqnorm() allowing other distributions besides the normal distribution.

  • winsorizor() Function moved from pscore package. Sets any values beyond specific quantiles of the empirical data to the specified quantiles. Can work on vectors, data frames, or matrices.

JWileymisc 0.2.0

Initial release to CRAN.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("JWileymisc")

0.2.1 by Joshua F. Wiley, a year ago


https://github.com/JWiley/JWileymisc


Report a bug at https://github.com/JWiley/JWileymisc/issues


Browse source code at https://github.com/cran/JWileymisc


Authors: Joshua F. Wiley <jwiley.psych@gmail.com>


Documentation:   PDF Manual  


GPL (>= 3) license


Imports stats, utils, MASS, Hmisc, multcompView, devtools, graphics, mgcv, plyr, mice, lavaan

Depends on data.table, ggplot2, cowplot, foreach

Suggests scales, testthat


See at CRAN