gp.optim | R Documentation |
This function is a wraper to estimate parameters in the GaSP model with different choices of estimation methods using numerical optimization methods.
gp.optim(obj, method = "MMLE", opt = NULL, bound = NULL)
obj |
an |
method |
a string indicating the parameter estimation method:
|
opt |
a list of arguments to setup the
|
bound |
Default value is
for the Confluent Hypergeometric covariance and the Cauchy covariance.
|
a list of updated gp
object obj and
fitted information fit
Pulong Ma mpulong@gmail.com
GPBayes-package, GaSP
, gp, gp.mcmc
code = function(x){
y = (sin(pi*x/5) + 0.2*cos(4*pi*x/5))*(x<=9.6) + (x/10-1)*(x>9.6)
return(y)
}
n=100
input = seq(0, 20, length=n)
XX = seq(0, 20, length=99)
Ztrue = code(input)
set.seed(1234)
output = Ztrue + rnorm(length(Ztrue), sd=0.1)
obj = gp(formula=~1, output, input,
param=list(range=4, nugget=0.1,nu=2.5),
smooth.est=FALSE,
cov.model=list(family="matern", form="isotropic"))
fit.optim = gp.optim(obj, method="MPLE")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.