Learn R Programming

statuser

Miscellaneous R functions for papers, blogposts, & teaching by Uri Simonsohn.

Installation

# Install from GitHub with `groundhog` (for version control)
groundhog::groundhog.library("urisohn/statuser", date)   #date used for version control 

# Or install from GitHub with `devtools`
devtools::install_github("urisohn/statuser")

Overview

Functions I often use and are not (sufficiently?) available in existing packages.

Functions

Copy Link

Version

Install

install.packages('statuser')

Version

0.1.9

License

GPL-3

Maintainer

Uri Simonsohn

Last Published

February 26th, 2026

Functions in statuser (0.1.9)

reg2

Two-Line Interrupted Regression
plot_freq

Plot frequencies of a variable, optionally by group (histogram without binning)
print.lm2

Print method for lm2 objects
resize_images

Resize Images
text2

Enhanced alternative to text()
print.t.test2

Print method for t.test2 output
twolines

Two-Lines Test of U-Shapes
statuser-package

Stat Tools for End Users
t.test2

Enhanced alternative to t.test()
table2

Enhanced alternative to table()
plot_gam

Plot GAM Model
summary.lm2

Summary method for lm2 objects
validate_t.test2

Validate Grouping Variable for t.test2()
print.desc_var

Print method for desc_var objects
validate_lm2

Validate Inputs for lm2() Function
validate_formula

Validate Formula Variables
validate_plot

Validate Inputs for Plotting Functions
validate_table2

Validate Inputs for table2() Function
scatter.gam

Scatter Plot with GAM Smooth Line
list2

Enhanced alternative to list()
clear

Clear Plot, Global Environment, and Console
lm2

Enhanced alternative to lm()
evaluate_variable_arguments

Evaluate Variable Arguments with NSE Support
desc_var

Describe a variable, optionally by groups
message2

Enhanced alternative to message()
format_pvalue

Format P-Values for Display
predict.lm2

Predict method for lm2 objects
plot_cdf

Plot Empirical Cumulative Distribution Functions by Group
convert_to_sql

Convert CSV file to SQL INSERT statements
plot_density

Plot density of a variable, optionally by another variable
print.table2

Print method for table2 output with centered column variable name