Learn R Programming

psycho (version 0.6.1)

mellenbergh.test: Mellenbergh & van den Brink (1998) test for pre-post comparison.

Description

Test for comparing post-test to baseline for a single participant.

Usage

mellenbergh.test(t0, t1, controls)

Arguments

t0

Single value (pretest or baseline score).

t1

Single value (posttest score).

controls

Vector of scores of the control group OR single value corresponding to the control SD of the score.

Value

Returns a data frame containing the z-value and p-value. If significant, the difference between pre and post tests is significant.

Examples

Run this code
# NOT RUN {
library(psycho)

mellenbergh.test(t0 = 4, t1 = 12, controls = c(0, -2, 5, 2, 1, 3, -4, -2))
mellenbergh.test(t0 = 8, t1 = 2, controls = 2.6)
# }

Run the code above in your browser using DataLab