## Not run:
# nsite <- 200
# nloc <- 1000
# hap.pop.size <- 100
# theta <- c(runif(n=1,.5,10),
# runif(n=1,.01,10),
# runif(n=1,.01,10),
# runif(n=1,.5,1),
# runif(n=1,.01,.1)
# )
# mod <- 'G+E'
# dat <- SimSunderData(mod=mod,
# theta=theta,
# nsite=nsite,
# nloc=nloc,
# hap.pop.size=hap.pop.size,
# nalM=2,nalm=2, #bi-allelic loci
# var.par=1,
# scale.par=3)
# gen <- dat$gen[,,1]
# D_G <- dat$D_G
# D_E <- dat$D_E
#
# res <- MLCVGauss(gen,D_G,D_E,
# ntrain=nrow(gen)/2,
# nresamp=3)
#
# which.max(res$mod.lik)
# ## End(Not run)
Run the code above in your browser using DataLab