EAPBal | R Documentation |
This provides a graph of the history of any given measure of
performance. The input should be a list of values hist
and the
list of the contexts
or game levels associated with them.
EAPBal(hist, contexts = names(hist), obs = NULL,
varname = deparse(substitute(hist)),
elim = c(-1, 1), etic = 4, title = paste("EAP Balance Sheet:", varname),
col = "slategray", posCol = "cyan", negCol = "red",
stripCol = c("white", "lightgray"), lcex = 0.65)
hist |
A vector of doubles giving the value of the statistic at each time point. |
contexts |
A list of names for the events associated with the
values. Defaults to the names of the |
obs |
Observable values associated with each level. If supplied
it should be a vector as long as |
varname |
The name of the variable which is being monitored. |
elim |
A vector of length two giving the minimum and maximum EAP value. |
etic |
How many tic marks to use on the EAP axis. |
title |
The main title for the overall plot. |
col |
Color for the EAP bars. |
posCol |
Color for positive movements. |
negCol |
Color for negative movements. |
stripCol |
The colors to be used for the time step labels. Setting this to a vector of two colors creates alternate color stripes. Set this to "white" to disable that effect. |
lcex |
Character expansion size for labels. |
Madigan, Mosurski and Almond (1997) described a graphical weight of evidence balance sheet. The key to this display is following a particular node (or more properly hypothesis involving a node) across time as evidence is entered into the system. There are two columns, one showing the probability distribution, and one showing the weight of evidence—the change in probabilities.
Often, the nodes in an ordered categorical value are assigned numeric values and an expected a posteriori or EAP value is calculated instead. The EAP balance sheet is similar to the woe balance sheet, except that it now uses a single numeric value.
The input is a sequence of EAP value, labeled by the event which causes the change. The output is a graphical display in three columns.
The midpoints of the bars (see barplot
) are
returned invisibly.
Russell Almond
Madigan, D., Mosurski, K. and Almond, R. (1997) Graphical explanation in belief networks. Journal of Computational Graphics and Statistics, 6, 160-181.
woeBal
, barplot
,
colors
sampleSequence <- read.csv(system.file("testFiles","SampleStudent.csv",
package="CPTtools"),
header=TRUE,row.names=1)
SolveGeometricProblems <- sampleSequence$H-sampleSequence$L
names(SolveGeometricProblems) <- rownames(sampleSequence)
EAPBal(SolveGeometricProblems, lcex=1.25)
EAPBal(SolveGeometricProblems,rownames(sampleSequence),
varname="Solve Geometric Problems",
obs=sampleSequence[,"Acc"],lcex=1.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.