EvidenceSet: Creates an Evidence Set Message

View source: R/Evidence.R

EvidenceSetR Documentation

Creates an Evidence Set Message

Description

An EvidenceSet is a P4Message which contains observable variables for the Bayes net engine. It provides the observavbles associated with a single scoring context.

Usage

EvidenceSet(uid, context, timestamp = Sys.time(), obs = list(), app =
"default", mess = "Accumulate", sender = "EI", processed = FALSE) 

Arguments

uid

A character scalar giving unique identifier for the student/player.

context

A character scalar giving a unique identifier for the scoring context (often game level or task).

timestamp

The time at which the evidence was recorded (POSIXt format).

obs

A named list giving the observable variables. The names and legal values correspond to the context and app values.

app

A character scalar giving the globally unique identifier of the application.

mess

A character scalar giving the message associated with the observables. (Part of the Proc 4 procotol).

sender

A character scalar giving the identity of the process which created the message. This will usually be an evidence identification process.

processed

A flag that is set when the evidence set has been processed.

Details

Aside from the seqno field, this is pretty much a generic P4Message. The data of the P4Message is the observables value fo the EvidenceSet.

Value

An object of class EvidenceSet.

Author(s)

Russell Almond

See Also

Class: EvidenceSet Methods: observables, seqno, parseEvidence

Using classes: StudentRecord

Examples


e1 <- EvidenceSet(uid="S1",app="Test",context="PPcompEM",
                  obs=list("CompensatoryObs"="Right"))

e2 <- EvidenceSet(uid="S1",app="Test",context="PPdurAttEM",
                  obs=list("Attempts"=2,"Duration"=38.3))





ralmond/EABN documentation built on Aug. 30, 2023, 12:52 p.m.