induce.cfe: induce.cfe

Description Usage Arguments Value Examples

Description

inducing ceiling/floor effects in data

Usage

1
induce.cfe(floor.perc, ceiling.perc, y)

Arguments

floor.perc

a (non-empty) numeric value from 0 to 1 denoting the desired percentage of floor effects

ceiling.perc

a (non-empty) numeric value from 0 to 1 denoting the desired percentage of ceiling effects

y

a (non-empty) numeric vector of data

Value

y scores with induced ceiling/floor effects

Examples

1
2
3
4
5
x=rnorm(1000,0,1) #simulate "healthy data"
x.c20=induce.cfe(0,.2,x) #induce 20% ceiling effects into the data
sum(x.c20==max(x.c20))/length(x.c20) #check ceiling percentage
x.f20=induce.cfe(.2,0,x) #induce 20% floor effects into the data
sum(x.f20==min(x.f20))/length(x.f20) #check ceiling percentage

DACF documentation built on May 2, 2019, 8:16 a.m.