Package 'pattern.checks'

Title: Identifies Patterned Responses in Scales
Description: Identifies the entries with patterned responses for psychometric scales. The patterns included in the package are identical (a, a, a), ascending (a, b, c), descending (c, b, a), alternative (a, b, a, b / a, b, c, a, b, c).
Authors: JZL [aut, cre]
Maintainer: JZL <[email protected]>
License: GPL (>= 2)
Version: 0.1.0
Built: 2025-01-24 06:28:45 UTC
Source: https://github.com/jzl-ck/pattern.checks

Help Index


Pattern : ab ab

Description

Pattern : ab ab

Usage

pattern.abab(data, cols)

Arguments

data

The data set with the scored responses in the same order as it is administered

cols

The columns belonging to the psychometric scale/scales under scrutiny

Value

The participants (rows) following the pattern, and the list of said participants along with their responses for all the items in the scale

Examples

data <- data.frame(
    Q1 = c(1, 2, 1, 2),
    Q2 = c(2, 1, 2, 1),
    Q3 = c(1, 2, 1, 2),
    Q4 = c(2, 1, 2, 1)
)
pattern.abab(data, 1:4)

Pattern : abc abc

Description

Pattern : abc abc

Usage

pattern.abcabc(data, cols)

Arguments

data

The data set with the scored responses in the same order as it is administered

cols

The columns belonging to the psychometric scale/scales under scrutiny

Value

The participants (rows) following the pattern, and the list of said participants along with their responses for all the items in the scale

Examples

data <- data.frame(
    Q1 = c(1, 2, 1, 2),
    Q2 = c(2, 1, 2, 1),
    Q3 = c(1, 2, 1, 2),
    Q4 = c(2, 1, 2, 1)
)
pattern.abcabc(data, 1:4)

Pattern : Responses in ascending order

Description

Pattern : Responses in ascending order

Usage

pattern.as(data, cols)

Arguments

data

The data set with the scored responses in the same order as it is administered

cols

The columns belonging to the psychometric scale/scales under scrutiny

Value

The participants (rows) following the pattern, and the list of said participants along with their responses for all the items in the scale

Examples

data <- data.frame(
    Q1 = c(1, 2, 1, 2),
    Q2 = c(2, 1, 2, 1),
    Q3 = c(1, 2, 1, 2),
    Q4 = c(2, 1, 2, 1)
)
pattern.as(data, 1:4)

Pattern : Responses in descending order

Description

Pattern : Responses in descending order

Usage

pattern.ds(data, cols)

Arguments

data

The data set with the scored responses in the same order as it is administered

cols

The columns belonging to the psychometric scale/scales under scrutiny

Value

The participants (rows) following the pattern, and the list of said participants along with their responses for all the items in the scale

Examples

data <- data.frame(
    Q1 = c(1, 2, 1, 2),
    Q2 = c(2, 1, 2, 1),
    Q3 = c(1, 2, 1, 2),
    Q4 = c(2, 1, 2, 1)
)
pattern.ds(data, 1:4)

Pattern : Identical responses

Description

Pattern : Identical responses

Usage

pattern.id(data, cols)

Arguments

data

The data set with the scored responses in the same order as it is administered

cols

The columns belonging to the psychometric scale/scales under scrutiny

Value

The participants (rows) following the pattern, and the list of said participants along with their responses for all the items in the scale

Examples

data <- data.frame(
    Q1 = c(1, 2, 1, 2),
    Q2 = c(2, 1, 2, 1),
    Q3 = c(1, 2, 1, 2),
    Q4 = c(2, 1, 2, 1)
)
pattern.id(data, 1:4)