rm_lineartrend | R Documentation |
remove variable linear trend based on covariate
rm_lineartrend(formula, data, method = c("cpp", "r"))
formula |
A formula. |
data |
The observation data. |
method |
(optional) The method for using, which can be chosen as either |
A numeric vector.
gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun'))
rm_lineartrend(PS_Score ~ ., gzma)
rm_lineartrend(PS_Score ~ ., gzma, method = "r")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.