A utility package for converting R regression model formula to Julia GLM.jl and MixedModels.jl syntax.
See {jlme}
for an
example application.
# install.packages("devtools")
::install_github("yjunechoe/JuliaFormulae") devtools
library(JuliaFormulae)
Zero correlation:
julia_formula(y ~ x + (x || g))
#> y ~ x + zerocorr(x | g)
Protection:
julia_formula(y ~ x + I(x * 2))
#> y ~ x + protect(x * 2)
Interaction terms:
julia_formula(y ~ a:b)
#> y ~ a & b
julia_formula(
~ a + I(a * 2) + b + a:b + (a || g) + (b | g)
y
)#> y ~ a + protect(a * 2) + b + (a & b) + zerocorr(a | g) + (b |
#> g)