Learn R Programming

bnlearn (version 4.9.1)

marks: Examination marks data set

Description

Examination marks of 88 students on five different topics, from Mardia (1979).

Usage

data(marks)

Arguments

Format

The marks data set contains the following variables, one for each topic in the examination:

  • MECH (mechanics)

  • VECT (vectors)

  • ALG (algebra)

  • ANL (analysis)

  • STAT (statistics)

All are measured on the same scale (0-100).

Examples

Run this code
# This is the undirected graphical model from Edwards (2000).
data(marks)
ug = empty.graph(names(marks))
arcs(ug, check.cycles = FALSE) = matrix(
  c("MECH", "VECT", "MECH", "ALG", "VECT", "MECH", "VECT", "ALG",
    "ALG",  "MECH", "ALG", "VECT", "ALG",  "ANL", "ALG",  "STAT",
    "ANL",  "ALG", "ANL",  "STAT", "STAT", "ALG", "STAT", "ANL"),
  ncol = 2, byrow = TRUE,
  dimnames = list(c(), c("from", "to")))
if (FALSE) graphviz.plot(ug)

Run the code above in your browser using DataLab