March 2019
Beginner to intermediate
448 pages
13h 14m
English
We will use the same house prices dataset that we have used previously in this chapter, and the objective will be to predict new observations:
library(rstan)data = read.csv("./house_prices.csv")
model ="data {real y[125];real x[125,6];real ns[2,6];}parameters {real beta[6];real sigma;real alpha;}model {beta ~ normal(5,10);for (n in 1:125) ...Read now
Unlock full access