Learn R Programming

pinbasic (version 1.2.2)

posterior: Posterior Probabilities

Description

Calculates posterior probabilities of conditions of trading days

Usage

posterior(param = NULL, numbuys = NULL, numsells = NULL)

Arguments

param

numeric: (named) vector of model parameters (valid names: 'alpha', 'delta', 'epsilon_b', 'epsilon_s', 'mu'), length must equal 5

numbuys

numeric: vector of daily buys

numsells

numeric: vector of daily sells

Value

numeric matrix with columns 'no', 'good' and 'bad' representing posterior probabilities for the corresponding trading day conditions

Details

For more details see corresponding section in vignette

See Also

ggplot.posterior

Examples

Run this code
# NOT RUN {
See Vignette \code{browseVignette(package = 'pinbasic')}
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab