PlotStrategybyCatPerformance: Check response time by var

Description Usage Arguments Value Examples

Description

This is a function that reports the number of students and number of actions (min-max) aggregated by a specific variable.

Usage

1
2
PlotStrategybyCatPerformance(data, strategy.var, categ.var, namexlab,
  nameylab)

Arguments

data

A matrix or data.frame

strategy.var

strategy variable

categ.var

categorizing variable

namexlab

name of the variable in the x-axis

nameylab

name of the variable in the y-axis

Value

This function returns a data.frame with the number of students and number de actions (min-max) aggregated by a specific variable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Data preparation
df <- cp025q01.treated
df$categ <- cut(df$PV1CPRO, c(0, 423, 488, 553, 900))
df.dataplot <- df[, c("top", "categ")]
df.dataplot[,1] <- as.factor(df.dataplot[,1])
df.dataplot[,2] <- as.factor(df.dataplot[,2])

# Function demonstration
m2$PlotStrategybyCatPerformance(df.dataplot, top, categ,
                                 "Proficiency levels", "Percentage")

LOGAN documentation built on May 6, 2019, 1:02 a.m.