Skip to contents

Defaults to PCM, use model = "RM" for dichotomous data.

Usage

RIloadLoc(dfin, output = "figure", pcx = c("PC1", "PC2", "PC3"), model = "PCM")

Arguments

dfin

Dataframe with item data only

output

Either "figure" (default) or "dataframe"

pcx

Number of principal components to output for "dataframe"

model

Defaults to "PCM", use "RM" for dichotomous data

Value

A plot with item locations (y) and loadings (x)

Details

Note. This function does not work with missing responses in the dataset. You can temporarily remove respondents with missing data when running the function, ie. RIloadLoc(na.omit(df))