R/interface.R
prefEl.Rd
A shortcut to create objects of the class BayesPrefClass.
prefEl(data = NA, priors = list(), ...)
A matrix or dataframe of data. Each column should be a variable, each row an observation.
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.
p <- prefEl(data = data.frame(x = c(1,0,1), y = c(0, 1, 1)), priors = c(Normal(0,1), Flat()))