Learn R Programming

subscore (version 1.2)

data.prep: This function prepares the data that can be used by other functions

Description

This function generates a list of datasets based on the scored original dataset, which can be used as objects in subscore computing functions.

Usage

data.prep(scored.data, subtest.infor)

Arguments

scored.data
A dataset that contains scored responses only.
subtest.infor
A numerical vector. The first number indicates the number of subtests, followed by the number o items of each subtest.

Value

A list that contains datasets of all subtests and the whole test.

Examples

Run this code
subtest.infor<-c(3,15,15,20)
        # This test consists of 3 subtests, which have 15, 15 and 20 items respectively.
        test.datalist<-data.prep(scored.data,subtest.infor)

Run the code above in your browser using DataLab