InnoVar is an R-package for simulating Multi Environmental Trials in a modular manner. The package allows for simulation of continous correlated and categorial associated variables considering different continuous and categorical marginal distributions.
Details are described in the package vignette
You can simulate a MET obtaining a dataset like the one below. Details can be found in the vignette with the package flow in the Articles section.
You can generate phenomic responses using different methods like Lasso, AMMI models and Gilberg (2019)
library(InnoVaR)
target <- sim_target(
X_gene = dat %>% dplyr::select(`trait_1`:`trait_100`),
X_env = dat %>% dplyr::select(`DranaigeClass`:`yes_no_sample`),
method = "lasso", pars = list(lambda = 0.5, sigma = 2,k=3),
marginal_mean = 5.3, marginal_sd = 1.5
)
head(target$target)
#> [1] 3.692807 4.573174 6.584955 4.172323 4.879207 6.431688