assess: Compare a given score to a parent population.

Description Usage Arguments Value Author(s) Examples

Description

Compare a given score to a parent population and draws a plot.

Usage

1
2
3
4
5
6
7
assess(score,
		mean=0,
		sd=1,
		distribution=NA,
		language="en",
		colour.line="#E91E63",
		colour.fill="#2196F3")

Arguments

score

The participant's score.

mean

The general population's mean.

sd

The general population's standart deviation.

distribution

Your own vector of parent distribution (if you feed in a vector, it will of course compute new values for the mean and sd).

language

"en" or "fr".

colour.line

The colour of the vertical line.

colour.fill

"The colour of the density plot.

Value

A ggplot2 plot.

Author(s)

Dominique Makowski

Examples

1
2
3
4
5
6
require(neuropsychology)

assess(3.4, mean=2.5, sd=1.2)

df <- personality
assess(24, distribution=df$Age)

Example output

Loading required package: tidyverse
-- Attaching packages --------------------------------------- tidyverse 1.2.1 --
v ggplot2 3.1.1       v purrr   0.3.2  
v tibble  2.1.1       v dplyr   0.8.0.1
v tidyr   0.8.3       v stringr 1.4.0  
v readr   1.3.1       v forcats 0.4.0  
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag()    masks stats::lag()
************
Welcome to neuropsychology v0.5.0 (c) Dominique Makowski.
See documentation on https://www.rdocumentation.org/packages/neuropsychology
Do not hesitate to create an issue on https://github.com/neuropsychology/neuropsychology.R/issues with questions, comments, or movie recommendations.
************
[1] "The participant (score = 3.4) is positioned at 0.75 standard deviations from the mean (M = 2.5, SD = 1.2). The participant's score is greater than 77.5 % of the general population."
[1] "The participant (score = 24) is positioned at -0.26 standard deviations from the mean (M = 26.8, SD = 10.59). The participant's score is greater than 60.91 % of the general population."

neuropsychology documentation built on May 2, 2019, 2:13 p.m.