| bri.gpr | R Documentation | 
Gaussian Process Regression in 1D
bri.gpr(x, y, pcprior, nbasis = 25, degree = 2, alpha = 2,
  xout = x, sigma0 = sd(y), rho0 = 0.25 * (max(x) - min(x)))
x | 
 the predictor vector  | 
y | 
 the response vector  | 
pcprior | 
 limites for the penalised complexity prior (optional). If specified should be a vector of the form c(r,s) where P(range < r = 0.05) and P(SD(y) > s = 0.05)  | 
nbasis | 
 - number of basis functions for the spline (default is 25)  | 
degree | 
 - degree for splines (default is 2) - allowable possibilities are 0, 1 or 2.  | 
alpha | 
 - controls shape of the GP kernel (default is 2) - 0 < alpha <=2 is possible  | 
xout | 
 - grid on which posterior will be calculated (default is x)  | 
sigma0 | 
 - prior mean for the signal SD (default is SD(y))  | 
rho0 | 
 - prior mean for the range  | 
list consisting of xout, the posterior mean, the lower 95% credibility band, the upper 95% credibility band and the INLA object containing the fit
Julian Faraway, jjf23@bath.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.