Learn R Programming

psyntur

The goal of psyntur is primarily to provide some functions and data-sets that are helpful with teaching statistics and data analysis to students in the Psychology Department at Nottingham Trent University.

Installation

You can install the development version of psyntur using devtools:

devtools::install_github("mark-andrews/psyntur")

If devtools is not available, install it with install.packages('devtools').

The source code is available here: https://github.com/mark-andrews/psyntur.

Examples

library(psyntur)
tukeyboxplot(y = time, x = task, data = vizverb, by = response)
shapiro_test(time, by = task, data = vizverb)
#> # A tibble: 2 x 3
#>   task   statistic  p_value
#>   <chr>      <dbl>    <dbl>
#> 1 verbal     0.861 0.000168
#> 2 visual     0.914 0.00512

Documentation

Vignettes explaining the main functions provides by psyntur are as follows:

In addition, all functions and data sets are listed here, each with links to their help pages.

Copy Link

Version

Install

install.packages('psyntur')

Monthly Downloads

346

Version

0.1.1

License

GPL-3

Maintainer

Mark Andrews

Last Published

November 25th, 2025

Functions in psyntur (0.1.1)

t_test

Independent samples t-test
paired_t_test

Paired samples t-test
sum_xna

Descriptive statistics for variables with missing values
scatterplot_matrix

Make a scatterplot matrix
pairs_plot

A pairs plot
pairwise_t_test

Pairwise t-test
schizophrenia

Age of Onset of Schizophrenia Data
selfesteem

Self-Esteem Score Data for One-way Repeated Measures ANOVA
tukeyboxplot

A Tukey box-and-whisker plot
total_scores

Calculate the total scores from sets of scores
vizverb

Visual versus Verbal Perception and Responses
describe

Calculate descriptive statistics
describe_across

Apply multiple descriptive functions to multiple variables
faithfulfaces

Faithfulness from a Photo?
histogram

A histogram
interaction_line_plot

Make a interaction line plot
get_dummy_code

Show the dummy code of a categorical variable
cronbach

Calculate Cronbach's alpha for sets of psychometric scale items
cohen_d

Cohen's d and Hedges g effect size
jobsatisfaction

Job Satisfaction Data for Two-Way ANOVA
ansur

Anthropometric data from US Army Personnel
re_code

Recode specified values by new values
scatterplot

A two dimensional scatterplot
shapiro_test

Shapiro-Wilk normality test
%>%

Pipe operator
selfesteem2_long

Self Esteem Score Data for Two-way Repeated Measures ANOVA: Long format
selfesteem2

Self Esteem Score Data for Two-way Repeated Measures ANOVA
test_psychometrics

Psychometrics raw data from testing or demo purposes
densityplot

A density plot
pairedsleep

Paired sleep data