pred_rfrk: Kriging predictions and SEs for RFRK model

View source: R/pred_rfrk.R

pred_rfrkR Documentation

Kriging predictions and SEs for RFRK model

Description

Evaluate kriging predictions and standard errors for random forest regression kriging model

Usage

pred_rfrk(rf, rfrk, obsv_coord, pred_coord, Xp, row_names = NULL,
  computeSE = T, scale = 1)

Arguments

rf

object of class 'randomForest'

rfrk

object of class 'rfrk'

obsv_coord

Data frame or matrix with x,y coordinates for observations.

pred_coord

Data frame or matrix with x,y coordinates for predictions.

Xp

matrix of covariates at prediction sites.

row_names

character or numeric vector specify row names for the predictions

computeSE

logical; whether to compute standard errors, default is TRUE

scale

scaling factor for distance matrix. The distance matrix will be divided by this number. Dafault is 1 for no scaling. Useful when converting Alber's coordinates from meters to kilometers; in this case, set scale to 1000.

Value

Matrix with RFRK predictions and SEs.


ericwfox/slmrf documentation built on Feb. 24, 2024, 11:02 p.m.