inst/doc/simplestats.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(psyntur)

## -----------------------------------------------------------------------------
t_test(trustworthy ~ face_sex, data = faithfulfaces)

## -----------------------------------------------------------------------------
pairedsleep

## -----------------------------------------------------------------------------
paired_t_test(y1, y2, data = pairedsleep)

## -----------------------------------------------------------------------------
data_df <- dplyr::mutate(vizverb, IV = interaction(task, response))

## -----------------------------------------------------------------------------
pairwise_t_test(time ~ IV, data = data_df)

## -----------------------------------------------------------------------------
shapiro_test(time, data = data_df)

## -----------------------------------------------------------------------------
shapiro_test(time, by = IV, data = data_df)

Try the psyntur package in your browser

Any scripts or data that you put into this service are public.

psyntur documentation built on Sept. 15, 2021, 5:07 p.m.