condDirichlet: Plot conditional distributions from an elicited Dirichlet...

Description Usage Arguments Details Author(s) Examples

View source: R/condDirichlet.R

Description

Opens up a web browser (using the shiny package), from which you can choose to condition on one of the category probability values, and then display the resulting conditional marginal distributions for the remaining categories

Usage

1

Arguments

d

A fitted Dirichlet distribution, produced from a fitDirichlet command.

Details

Press Esc in the R console window to exit the elicitation session.

Author(s)

Jeremy Oakley <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
p1 <- c(0.25, 0.5, 0.75)
v1 <- c(0.5, 0.55, 0.6)
v2 <- c(0.22, 0.3, 0.35)
v3 <- c(0.11, 0.15, 0.2)
myfit1 <- fitdist(v1, p1, 0, 1)
myfit2 <- fitdist(v2, p1, 0, 1)
myfit3 <- fitdist(v3, p1, 0, 1)
d <- fitDirichlet(myfit1, myfit2, myfit3,
                  categories = c("A","B","C"),
                  n.fitted = "opt")
condDirichlet(d)

## End(Not run)

OakleyJ/SHELF documentation built on Feb. 14, 2020, 8:17 a.m.