powered by
remove variable linear trend based on covariate
rm_lineartrend(formula, data, method = c("cpp", "r"))
A numeric vector.
A formula.
The observation data.
(optional) The method for using, which can be chosen as either cpp or r. Default is cpp.
cpp
r
gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun')) rm_lineartrend(PS_Score ~ ., gzma) rm_lineartrend(PS_Score ~ ., gzma, method = "r")
Run the code above in your browser using DataLab