rm_lineartrend {sdsfun} | R Documentation |
remove variable linear trend based on covariate
Description
remove variable linear trend based on covariate
Usage
rm_lineartrend(formula, data, method = c("cpp", "r"))
Arguments
formula |
A formula. |
data |
The observation data. |
method |
(optional) The method for using, which can be chosen as either |
Value
A numeric vector.
Examples
gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun'))
rm_lineartrend(PS_Score ~ ., gzma)
rm_lineartrend(PS_Score ~ ., gzma, method = "r")
[Package sdsfun version 0.8.0 Index]