prefEl | R Documentation |
A shortcut to create objects of the class BayesPrefClass.
prefEl(data = NA, priors = list(), ...)
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. |
p <- prefEl(data = data.frame(x = c(1,0,1), y = c(0, 1, 1)), priors = c(Normal(0,1), Flat()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.