dir <- "solar"
library(devtools)
load_all("~/git/ugcd/solarius/")
data(dat30, package = "solarius")
mod1 <- solarPolygenic(trait1 + trait2 ~ age, dat30, dir = dir)
cmd1 <- c("load model trait1.trait2/null0", "define age_i = age", "mu = mu + {t2*(<bage_i(trait2)>*age_i)}", "maximize", "save model trait1.trait2/custom1") ret1 <- solar(cmd1, dir) cmd2 <- c( "load model trait1.trait2/spor", "set loglik_0 [loglike]", "puts \"loglik_0 = $loglik_0\"", "load model trait1.trait2/null0", "set loglik_1 [loglike]", "puts \"loglik_1 = $loglik_1\"", "define age_i = age", "covariate sex age_i(trait2)", "polymod", "maximize", "set loglik_2 [loglike]", "puts \"loglik_2 = $loglik_2\"", "save model trait1.trait2/custom2") ret2 <- solar(cmd2, dir)
grep("loglik_", ret2, value = TRUE)
assoc1 <- solarAssoc(trait1 + trait2 ~ age, dat30, snpcovdata = genocovdat30[, 1:2], dir = dir, assoc.options = "-saveall")
SOLAR
command:
assoc1$assoc$solar$cmd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.