Learn R Programming

geomod (version 0.1.0)

predGeo: Function to develop spatial map of Geotechnical soil properties

Description

This functions is used to estimate spatial maps of Geotechnical soil properties using machine learning technique

Usage

predGeo(indata,fgrid, k, z, model="rf")

Value

a raster map of prediction for the target Geotechnical property

Arguments

indata

one column input spatial dataframe containing the target soil variable or its transformation

fgrid

Input grid or raster stack containing predictors set for the target soil variable

k

Set limit for number of simulations for the spatial modelling algorithm

z

Confidence interval level in percent (for example 95)

model

The model for predicting target soil variable using the predictors (for example linear)

Author

Festus K. Ngeno and Christian Omuto

Details

One-variable input dataframe is prefered or at least the first column should have the target Geotechnical variable to predict. It should not contain NAs. The number of realizations k need not be too high because the software multiplies it exponentially and may slow down the computing process if set to a high value. For example k=5 will results into more than 40 realizations created

See Also

regmodelSuit

Examples

Run this code
library(caret)
library(sp)
library(rasterVis)
library(raster)
library(randomForest)
data(predLayer)
data(sampleData)
soils=subset(sampleData,!is.na(sampleData$LL))
dattu=sampleData[,c("LL")]
# \donttest{
  Tesrd=predGeo(dattu,predLayer,k=3,90,"lm")
# }

Run the code above in your browser using DataLab