Linear Regression to combine the use of compositional and non-compositional data in the same model (Planned as extension of the lmCoDaX function from the robComposition package)
using LRCoDa
data(gemas)
X <- dplyr::select(gemas, c(MeanTemp, soilclass, Al:Zr))
lr <- LRCoDa(y = gemas$sand, X, external = c('MeanTemp', 'soilclass'))
The package has dependencies on
R (>= 2.10), dplyr, robCompositions, robustbase, sjmisc
Installion of LRCoDa
is easy when the R-tools are installed. Just use
library(devtools)
install_github("Wiedi97/LRCoDa-Package")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.