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 to know (predict) the value y for new x values, for example: xnew <- runif(10,0,1). but i can't find a "predict" function. How can i do? -- View this message in context: http://r.789695.n4.nabble.com/Predict-in-the-package-R2BayesX-tp4632618.html Sent from the R help mailing list archive at Nabble.com.
I have the same question. This paper may help you. http://eeecon.uibk.ac.at/wopec2/repec/inn/wpaper/2012-10.pdf Best of luck. Paul -- View this message in context: http://r.789695.n4.nabble.com/Predict-in-the-package-R2BayesX-tp4632618p4633144.html Sent from the R help mailing list archive at Nabble.com.
I have the same question. This paper may help you. http://eeecon.uibk.ac.at/wopec2/repec/inn/wpaper/2012-10.pdf Best of luck. Paul -- View this message in context: http://r.789695.n4.nabble.com/Predict-in-the-package-R2BayesX-tp4632618p4633145.html Sent from the R help mailing list archive at Nabble.com.
On Tue, 12 Jun 2012, Paul J Ossenbruggen wrote:> I have the same question. This paper may help you. > > http://eeecon.uibk.ac.at/wopec2/repec/inn/wpaper/2012-10.pdfThanks for posting this, Paul. The paper above describes the current state of affairs in "R2BayesX". But we are also working on extending it. And when I say "we" I mean mostly Nikolaus Umlauf - the main developer and maintainer of the R2BayesX interface package (cc in this mail). Out-of-sample prediction is currently not available yet because it is not handled by BayesX itself yet. Nikolaus is planning to work on it, though. Best regards, Z> Best of luck. > > Paul > > -- > View this message in context: http://r.789695.n4.nabble.com/Predict-in-the-package-R2BayesX-tp4632618p4633145.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >