yongzesong / WS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wavelet linear regression (WLR) for wavelet selection and soil prediction

## install and library the pacakge
install.packages("devtools")

library(devtools)
install_github("yongzesong/WS")

library("WS")

## Example 1
data("soilcarbon")
wn <- seq(350, 2500, 10)
wlr1 <- wlr(y = y, x = x, wn = wn, ns = 6) # ~ 9.5s
wlr1
plot(wlr1)

 

To cite "WS" R package in publications, please use:

Song, Y., Shen, Z., Wu, P., and R. A. V. Rossel. Wavelet geographically weighted regression for spectroscopic modelling of soil properties. Sci Rep 11, 17503 (2021). https://doi.org/10.1038/s41598-021-96772-z

About


Languages

Language:R 100.0%