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

618

Version

0.1.0

License

GPL-3

Maintainer

Mark Andrews

Last Published

September 15th, 2021

Functions in psyntur (0.1.0)

cohen_d

Cohen's d and Hedges g effect size
describe

Calculate descriptive statistics
histogram

A histogram
densityplot

A density plot
get_dummy_code

Show the dummy code of a categorical variable
ez_anova

Analysis of variance
describe_across

Apply multiple descriptive functions to multiple variables
cronbach

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

Anthropometric data from US Army Personnel
%>%

Pipe operator
total_scores

Calculate the total scores from sets of scores
scatterplot

A two dimensional scatterplot
pairs_plot

A pairs plot
pairwise_t_test

Pairwise t-test
faithfulfaces

Faithfulness from a Photo?
jobsatisfaction

Job Satisfaction Data for Two-Way ANOVA
interaction_line_plot

Make a interaction line plot
scatterplot_matrix

Make a scatterplot matrix
t_test

Independent samples t-test
selfesteem2

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

Psychometrics raw data from testing or demo purposes
paired_t_test

Paired samples t-test
pairedsleep

Paired sleep data
selfesteem2_long

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

A Tukey box-and-whisker plot
re_code

Recode specified values by new values
schizophrenia

Age of Onset of Schizophrenia Data
selfesteem

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

Visual versus Verbal Perception and Responses
shapiro_test

Shapiro-Wilk normality test
sum_xna

Descriptive statistics for variables with missing values