assess: Compare a patient's score to a control group

Description Usage Arguments Details Value Author(s) Examples

View source: R/assess.R

Description

Compare a patient's score to a control group.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
assess(
  patient,
  mean = 0,
  sd = 1,
  n = NULL,
  controls = NULL,
  CI = 95,
  treshold = 0.05,
  iter = 10000,
  color_controls = "#2196F3",
  color_CI = "#E91E63",
  color_score = "black",
  color_size = 2,
  alpha_controls = 1,
  alpha_CI = 0.8,
  verbose = TRUE
)

Arguments

patient

Single value (patient's score).

mean

Mean of the control sample.

sd

SD of the control sample.

n

Size of the control sample.

controls

Vector of values (control's scores).

CI

Credible interval bounds.

treshold

Significance treshold.

iter

Number of iterations.

color_controls

Color of the controls distribution.

color_CI

Color of CI distribution.

color_score

Color of the line representing the patient's score.

color_size

Size of the line representing the patient's score.

alpha_controls

Alpha of the CI distribution.

alpha_CI

lpha of the controls distribution.

verbose

Print possible warnings.

Details

Until relatively recently the standard way of testing for a difference between a case and controls was to convert the case’s score to a z score using the control sample mean and standard deviation (SD). If z was less than -1.645 (i.e., below 95

Value

output

Author(s)

Dominique Makowski

Examples

1
2
3
result <- assess(patient = 124, mean = 100, sd = 15, n = 100)
print(result)
plot(result)

neuropsychology/psycho.R documentation built on Jan. 25, 2021, 7:59 a.m.