Skip to contents

A shortcut to create objects of the class BayesPrefClass.

Usage

prefEl(data = NA, priors = list(), ...)

Arguments

data

A matrix or dataframe of data. Each column should be a variable, each row an observation.

priors

A list of functions that give the prior on each variable. E.g. see help(Flat)

...

Other parameters to pass to the class constructor. Not recommended.

Examples

p <- prefEl(data = data.frame(x = c(1,0,1), y = c(0, 1, 1)),
            priors = c(Normal(0,1), Flat()))