#####################################################################################
##### First Time Loading, Julia is Installed and Julia Path is Known ######
#####################################################################################
# fit model
if (FALSE) {
if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## The examples are quite time consuming
## Do initiation for and automatic installation if necessary
mod <- smtl(y = y,
X = X,
study = task,
s = 5,
commonSupp = FALSE,
lambda_1 = c(0.1, 0.2, 0.3),
lambda_z = c(0.01, 0.05, 0.1))
# make predictions
preds <- sMTL::predict.smtl(model = mod,
X = X,
lambda_1 = 0.1,
lambda_z = 0.01) }
}
Run the code above in your browser using DataLab