prefEl: A shortcut to create objects of the class BayesPrefClass.

Description Usage Arguments Examples

View source: R/interface.R

Description

A shortcut to create objects of the class BayesPrefClass.

Usage

1
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

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

jlepird/prefeR documentation built on May 17, 2017, 11:22 p.m.