qs1 {IDSA} | R Documentation |
Power of spatial and multilevel discretization determinant (PSMD) of SPADE model for an individual explanatory variable.
Description
Power of spatial and multilevel discretization determinant (PSMD) of SPADE model for an individual explanatory variable.
Usage
qs1(y, x, xh, location)
Arguments
y |
A numeric vector of a response variable |
x |
A numeric vector of a explanatory variable |
xh |
A character variable of an explanatory variable |
location |
A matrix of spatial locations |
Value
A data frame of PSMD values.
Examples
library(GD)
data.disc <- disc(sim$xa, 4, "quantile")
xh <- cut(sim$xa, data.disc$itv, include.lowest = TRUE)
qs1(y = sim$y, x = sim$xa, xh = xh, location = sim[, c("lo","la")])
[Package IDSA version 2.1 Index]