msdf {elisr}R Documentation

Create and test for a multiple scaled data frame

Description

new_msdf() creates a multiple scaled data frame (msdf).

is.msdf() tests if an object is a multiple scaled data frame.

Usage

new_msdf(x = list(), method, mrit_min, negative_too, sclvals = NULL, df)

is.msdf(x)

Arguments

x

either a multiple scaled data frame (new_msdf()) or an arbitrary object to test (is_msdf()).

method

the method used to produce the multiple scaled data frame (either disjoint() or overlap()).

mrit_min

a numeric constant of length one to specify the marginal corrected item-total correlation. Its value is in the range of 0-1.

negative_too

a logical constant indicating whether reversed items are included in the analysis. The default is set to FALSE.

sclvals

a numeric vector of length two indicating the start- and endpoint of a scale.

df

the data frame to analyze.

Details

Objects of type 'msdf' are for internal use only.

Value

new_msdf() returns a list of data frames with a few attributes that partially summarize the scaling process.

is.msdf() returns a logical vector of length one. TRUE indicates that the object is of type msdf.


[Package elisr version 0.1.1 Index]