powered by
A function that estimates the user's underlying utility function.
infer(p, estimate = "recommended", nbatch = 1000)
A BayesPrefClass instance.
The type of posterior point-estimate returned. Valid options are "recommended" (default), "MAP", and "mean".
If using Monte Carlo estimates, the number of samples. Defaults to 1000.
A vector of parameters that best fits the observed preferences.
# NOT RUN { 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") # }
Run the code above in your browser using DataLab