Learn R Programming

neuropsychology (version 0.5.0)

assess: Compare a given score to a parent population.

Description

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

Usage

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.

Examples

Run this code
require(neuropsychology)

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

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

Run the code above in your browser using DataLab