Learn R Programming

psycho (version 0.6.1)

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

Description

Compare a patient's score to a control group.

Usage

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.

Value

output

Details

Until relatively recently the standard way of testing for a difference between a case and controls was to convert the case<U+2019>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

Examples

Run this code
# NOT RUN {
result <- assess(patient = 124, mean = 100, sd = 15, n = 100)
print(result)
plot(result)
# }

Run the code above in your browser using DataLab