knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
https://dpagliaccio.github.io/scipub/
This package contains functions for summarizing data for scientific publication. This includes making a "Table 1" to summarize demographics across groups, correlation tables with significance indicated by stars, and extracting formatted statistical summarizes from simple tests for in-text notation. The package also includes functions for Winsorizing data based on a Z-statistic cutoff.
Functions:
apastat - Format simple statistic test results for scientific publication
correltable - Create correlation table (with stars for significance) for scientific publication
FullTable1 - Create Table1 of group summary with stats for scientific publication
gg_groupplot - Create ggplot to display group differences (box+point+hist)
winsorZ_find - Identify outliers based on z-score cutoff that are Winsorized by the winsorZ
function
winsorZ - Winsorize outliers based on z-score cutoff to next most extreme non-outlier value
You can install the released version of scipub from CRAN with:
install.packages("scipub")
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("dpagliaccio/scipub")
This is a basic example:
library(scipub) correltable(data=psydat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.