r2Winsteps: Write data and control files for Winsteps from R.

Description Usage Arguments Value

View source: R/r2Winsteps.r

Description

Function for writing control and data files from R to Winsteps for Rasch analysis.

Usage

1
2
3
r2Winsteps(itms, dems = NULL, partialCredit = FALSE, idelete = NULL,
  anchorFile = NULL, sAnchorFile = NULL, title = "r2Winsteps",
  Ifile = TRUE, Pfile = TRUE, Sfile = TRUE, format = "txt", dec = 2)

Arguments

itms

Dataframe or matrix of items responses

dems

Dataframe or matrix of person identifiers/demographic fields

partialCredit

Logical. Should Masters' partial credit model be estimated? Defaults to FALSE. If the data include more than two categories and partialCredit == FALSE, then the control file will be written such that Andrich's rating scale model is estimated. If the data include only two response options, then partialCredit must be set to FALSE.

idelete

Items to remove from the analysis. Should be supplied as a vector.

anchorFile

Optional name of an anchor file to be included in the analysis, see write.anchor

sAnchorFile

Optional nam of a structure file to be included in the analysis when anchoring a partial credit scale.

title

Title of the analysis, which will be used in the name of the data and text files. Defaults to "r2Winsteps".

Ifile

Logical, defaults to TRUE. Should the item file be returned?

Pfile

Logical, defaults to TRUE. Should the person file be returned?

Sfile

Logical, defaults to TRUE when the data have more than two categories. Should the item-structure file be returned?

format

Format in which item and person files should be returned. Takes values "txt" and "XLS" to return txt and XLS files, respectively. Defaults to "txt". Note that "txt" must be used if subsequent calls to batch.ifile/batch.pfile are used to read thefiles back into R.

dec

Number of decimals reported in output. Defaults to 2. Must range from 0 to 4.

Value

Control and Data file for analysis with Winsteps.


DJAnderson07/r2Winsteps documentation built on Sept. 12, 2019, 1:06 a.m.