qsoverlay: PSD with an overlay variable.

Description Usage Arguments Value Examples

View source: R/qsoverlay.R

Description

PSD with an overlay variable.

Usage

1
qsoverlay(x, xoverlay, location)

Arguments

x

A numeric vector of a explanatory variable

xoverlay

A character variable of an explanatory variable

location

A matrix of spatial locations

Value

A PSD value of an overlay variable.

Examples

1
2
3
4
5
6
7
8
9
library(GD)
data <- sim[, 4:6]
data.disc <- apply(data, 2, FUN = function(x) disc(x, 4, "quantile"))
layers <- do.call(cbind, lapply(1:ncol(data), function(x)
  data.frame(cut(data[, x], data.disc[[x]]$itv, include.lowest = TRUE))))
names(layers) <- names(data)
fo <- fuzzyoverlay(y = sim[,1], layers = layers, method = "fuzzyAND")
qo <- qsoverlay(x = data, xoverlay = fo$fuzzylayer,
                location = sim[, c("lo","la")])

IDSA documentation built on April 18, 2021, 5:07 p.m.