# NOT RUN {
data("CarTask", package = "bayesbr")
bbr = bayesbr(probability~ NFCCscale,data=CarTask,
iter = 100, mean_betas = c(1,1.2))
predict(bbr, type = "response")
predict(bbr, type = "link")
predict(bbr, type = "precision")
predict(bbr, type = "variance")
predict(bbr, type = "quantile", at = c(0.25, 0.5, 0.75))
df = data.frame(NFCCscale = rnorm(10,4,1.4))
predict(bbr, newdata = df, type = "response")
predict(bbr, newdata = df, type = "link")
predict(bbr, newdata = df, type = "precision")
predict(bbr, newdata = df, type = "variance")
predict(bbr, newdata = df, type = "quantile", at = c(0.25, 0.5, 0.75))
# }
Run the code above in your browser using DataLab