milkha / Splines_in_Stan

Implementation of B-Splines in Stan
52 stars 21 forks source link

a0 is the slope, not the intercept #7

Open jdthorpe opened 6 years ago

jdthorpe commented 6 years ago

in this line:

Y_true <- as.vector(a0*X + a%*%B) # generating the output

a0 is the slope, not the intercept, which contracts the line just before it:

a0 <- 0.2 # intercept