Displaying 1 result from an estimated 1 matches for "tp4632618p4633145".
2012 Jun 06
3
Predict in the package R2BayesX
Hi all
I'm using the function bayesx to estimate a simple model, for example:
library(R2BayesX)
## generate some data
set.seed(111)
n <- 200
## regressor
dat <- data.frame(x = runif(n, -3, 3))
## response
dat$y <- with(dat, 1.5 + sin(x) + rnorm(n, sd = 0.6))
## estimate models with
## bayesx REML and MCMC
b1 <- bayesx(y ~ sx(x), method = "REML", data = dat)
I want