raschFit: Fits Rasch models for the reference group 0 and the focal...

Description Usage Arguments Value Examples

View source: R/raschFit.R

Description

Fits Rasch models for the reference group 0 and the focal group 1

Usage

1
raschFit(data, resp.mat.name = "i", group.name = "groups")

Arguments

data
  • data.frame - simulated or a real data. Must contain:

  • response item matrix (matrix), binary (0/1) input.

  • group (vector), the group of the test takers.

resp.mat.name

string vector, the name of the response matrix in 'data' input with 'i' as a default (as dgp).

group.name

string vector, the group name in the data frame 'data' (as dgp).

Value

two objects of class "raschmodel", produced by function RaschModel.fit of the package psychotools.

Examples

1
2
3
4
5
6
# Load the SPISA data set (general knowledge quiz - more information at ?SPISA)
library("psychotree")
data("SPISA")

# Fit the Rasch Models for the two groups females and males
fit <- raschFit(SPISA, resp.mat.name='spisa', group.name='gender')

lucasmanuelkohler/anchorpoint documentation built on April 16, 2021, 6:41 a.m.