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:
testdistr(mtcars$mpg, "normal")
testdistr(resid(lm(Petal.Length ~ Species, data = iris)), "normal")
mvqq(iris[,-5])
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.
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.
Initial release to CRAN.