varmodel: Fit a theoretical semi-variogram to data

varmodelR Documentation

Fit a theoretical semi-variogram to data

Description

Function fits (manually) a theoretical semi-variogram. For now, model types available are spherical ('sph') and exponential ('exp'). Users should provide the experimental semi-variogram, fit a model type and set the semi-variogram parameters (nugget, range and sill). With base function plot(), results can be visualized.

Usage

varmodel(varexp, mod = c("exp", "sph"), nug, ran, sill)

Arguments

varexp,

string, name of object, output of function 'varexp()'

mod,

character, the semi-variogram model type ('sph' or 'exp')

nug,

numeric, nugget-effect value of the semi-variogram

ran,

numeric, range value of the semi-variogram

sill,

numeric, sill (or partial sill) value of the semi-variogram

Value

Function returns the following list of objects:

structures

the number of spatial strutures (excluding nugget-effect)

parameters

a dataframe with model information to be passed to ssdpars()

fittedval

a numeric vector of fitted values as set by the semi-variogram model


maluicr/blockdss documentation built on Nov. 22, 2023, 11:42 a.m.