linear_model_caret: Linear model Caret

Description Usage Arguments Details Value Author(s)

View source: R/linear_model_caret.R

Description

Function overlays the ground stations and the grid, trains and predicts using the caret package function train.

Usage

1
2
linear_model_caret(groundstations, method.overlay = "extract", formula,
  variable, grid_prediction, length = 20, method = "lm")

Arguments

groundstations

Data from the ground station in spatial format without na values

method.overlay

Method to overlay the points and the grid, choose between over (1 cell) and extract function (which averages over 4 nearest cells)

formula

formula used for the kriging interpolation

variable

the variable of the groundstations you want to interpolate

grid_prediction

trend grid for the interpolation with same spatial extent as groundstations

length

tune length of the model

method

model caret

Details

after running this function take a look at get_statistical_summary

Value

returns a list with the interpolation output and a dataframe with the difference between your observations and predicted grid

Author(s)

Marieke Dirksen


MariekeDirk/GeoInterpolation documentation built on May 14, 2019, 8:20 a.m.