| pkern_optim | R Documentation | 
documentation unfinished
pkern_optim(
  g_obs,
  pars = "gau",
  X = 0,
  iso = FALSE,
  control = list(),
  quiet = FALSE,
  log_scale = TRUE,
  method = "L-BFGS-B",
  lower = NULL,
  initial = NULL,
  upper = NULL
)
g_obs | 
 list of form returned by   | 
pars | 
 list of fixed kernel parameters, with NAs indicating parameters to fit  | 
X | 
 numeric, vector, matrix, or NA, the mean or its linear predictors, passed to   | 
iso | 
 logical, indicating to constrain the y and x kernel parameters to be the same  | 
control | 
 list, passed to   | 
quiet | 
 logical, indicating to suppress console output  | 
... | 
 named arguments to pass to   | 
# set up example grid and data
g_obs = pkern_grid(10)
g_obs$gval = rnorm(10^2)
pkern_optim(g_obs, quiet=TRUE)
# repeat with one or more parameters fixed
pars = pkern_pars_make('gau') # NA parameters list
pars$psill = 1
pkern_optim(g_obs, pars, quiet=TRUE)
pars$y$kp = 1
pkern_optim(g_obs, pars, quiet=TRUE)
# iso mode constrains x parameters to equal y parameters
pkern_optim(g_obs, iso=T, quiet=TRUE)
pkern_optim(g_obs, pars, iso=T, quiet=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.