| infer | R Documentation | 
A function that estimates the user's underlying utility function.
infer(p, estimate = "recommended", nbatch = 1000)
p | 
 A BayesPrefClass instance.  | 
estimate | 
 The type of posterior point-estimate returned. Valid options are "recommended" (default), "MAP", and "mean".  | 
nbatch | 
 If using Monte Carlo estimates, the number of samples. Defaults to 1000.  | 
A vector of parameters that best fits the observed preferences.
 p <- prefEl(data = data.frame(c(1,0,1), c(0,1,1), c(1,1,1)),
             priors = c(Normal(0, 1), Exp(0.5), Flat()))
 p$addPref(1 %>% 2)
 infer(p, estimate = "MAP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.