heatmaps_crm {airt}R Documentation

Function to produce heatmaps from a continuous IRTmodel

Description

This function makes a dataframe from the continuous IRTmodel the autoplot function produces the heatmaps.

Usage

heatmaps_crm(model, thetarange = c(-6, 6))

## S3 method for class 'heatmapcrm'
autoplot(
  object,
  xlab = "Theta",
  nrow = 2,
  ratio = 1,
  col_scheme = "plasma",
  ...
)

Arguments

model

Output from the function cirtmodel.

thetarange

The range for theta, default from -6 to 6.

object

For autoplot: output of heatmaps_crm function.

xlab

For autoplot: xlabel.

nrow

For autoplot: number of rows of heatmaps to plot.

ratio

For autoplot: ratio for coord_fixed in ggplot.

col_scheme

For autoplot: the color scheme for heatmaps. Default value is plasma.

...

Other arguments currently ignored.

Value

Dataframe with output probabilities from the IRT model for all algorithms, an object of class heatmapcrm.

Examples

data(classification_cts)
model <- cirtmodel(classification_cts)
obj <- heatmaps_crm(model)
head(obj$df)
autoplot(obj)


[Package airt version 0.2.2 Index]