# A model for the longitudinal proteomics data set (Liu et. al, 2018)
library(lgpr)
# Load data
setup_data <- function(verbose) {
protein <- "Q8WZA1"
read_proteomics_data(protein = protein, verbose = verbose)
}
# Create model
setup_model <- function(...) {
dat <- setup_data(verbose = FALSE)
f <- y ~ gp(age) * zs(id) + gp(age) + het(id) * gp_vm(diseaseAge) +
zs(sex) * gp(age) + zs(group)
model <- create_model(formula = f, dat, ...)
return(model)
}
expected_relevances <- function() {
c(0.09591313, 0.1149214, 0.253168134, 0.03665491, 0.003777137, 0.4955653)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.