View source: R/geoR_dist_functions.R
Fit of gaussian field. Modified from function likfit in geoR.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | likfit.dist(
geodata,
coords = geodata$coords,
data = geodata$data,
trend = "cte",
ini.cov.pars,
fix.nugget = FALSE,
nugget = 0,
fix.kappa = TRUE,
kappa = 0.5,
fix.lambda = TRUE,
lambda = 1,
fix.psiA = TRUE,
psiA = 0,
fix.psiR = TRUE,
psiR = 1,
cov.model,
dist.mat,
realisations,
lik.method = "ML",
components = TRUE,
nospatial = TRUE,
limits = pars.limits(),
print.pars = FALSE,
messages,
...
)
|
geodata |
a list containing elements |
coords |
an n x 2 matrix where each row has the 2-D
coordinates of the n data locations.
By default it takes the
component |
data |
a vector with n data values. By default it takes the
component |
trend |
specifies the mean part of the model. See documentation
of |
ini.cov.pars |
initial values for the covariance parameters:
sigma^2 (partial sill) and phi (range
parameter). Typically a vector with two components. However a
matrix can be used to provide several initial values. See
|
fix.nugget |
logical, indicating whether the parameter
tau^2 (nugget variance) should be regarded as fixed
( |
nugget |
value of the nugget parameter.
Regarded as a fixed value if |
fix.kappa |
logical, indicating whether the extra parameter
kappa should be regarded as fixed
( |
kappa |
value of the extra parameter kappa.
Regarded as a fixed value if |
fix.lambda |
logical, indicating whether the Box-Cox transformation parameter
lambda should be regarded as fixed
( |
lambda |
value of the Box-Cox transformation parameter
lambda.
Regarded as a fixed value if |
fix.psiA |
logical, indicating whether the anisotropy angle parameter
psi_R should be regarded as fixed
( |
psiA |
value (in radians) for the anisotropy angle parameter
psi_A.
Regarded as a fixed value if |
fix.psiR |
logical, indicating whether the anisotropy ratio parameter
psi_R should be regarded as fixed
( |
psiR |
value, always greater than 1, for the anisotropy ratio parameter
psi_R.
Regarded as a fixed value if |
cov.model |
a string specifying the model for the correlation
function. For further details see documentation for |
dist.mat |
Square matrix of distances between data points |
realisations |
optional. Logical or a vector indicating the number of replication
for each datum. For further information see |
lik.method |
(formely method.lik) options are |
components |
an n x 3 data-frame with fitted
values for the three model components: trend, spatial and residuals.
See the section |
nospatial |
logical. If |
limits |
values defining lower and upper limits for the model
parameters used in the numerical minimisation.
The auxiliary function |
print.pars |
logical. If |
messages |
logical. Indicates whether status messages should be printed on the screen (or output device) while the function is running. |
... |
additional parameters to be passed to the minimisation
function. Typically arguments of the type |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.