clean: Clean input CREDI response data

View source: R/clean.R

cleanR Documentation

Clean input CREDI response data

Description

This takes raw CREDI data and pre-processes it for scoring. This function is used by the 'score' function and is not typically used directly by a user.

Usage

clean(input_df, mest_df, reverse_code, interactive, log, min_items, dscore)

Arguments

input_df

(data.frame) Raw input data from the user-specified csv file.

mest_df

(data.frame) Measurement parameter estimates.

reverse_code

(logical). If TRUE, then reverse codes LF9, LF102, LFMH1, LFMH2, LFMH3, LFMH4, LFMH5, LFMH7, LFMH8, & LFMH9. If FALSE, then no reverse coding is applied.

log

(string) Name of the *.txt log file for the CREDI scoring.

min_items

(integer) Default to 5. The minimum number of scale-specific items (e.g., SF, MOT, etc.) required for a score to be calculated.

dscore

(Logical) Defaults to FALSE. If TRUE, calculate GSED d-score and DAZ in addition to CREDI scores.

csv_wd

(string) Working directory where input *.csv file is located.


marcus-waldman/credi documentation built on Nov. 17, 2023, 2:49 p.m.