Description Usage Arguments Value Examples
A function to obtain coefficients from the model fit object corresponding to the desired pair of tuning parameters lambda
= (lambda_1
, lambda_2
).
1 | gesso.coef(fit, lambda)
|
fit |
model fit object obtained either by using function |
lambda |
a pair of tuning parameters organized in a tibble (ex: |
A list of model coefficients corresponding to lambda
values of tuning parameters
beta_0 |
estimated intercept value |
beta_e |
estimated environmental coefficient value |
beta_g |
a vector of estimated main effect coefficients |
beta_c |
a vector of estimated confounders coefficients |
beta_gxe |
a vector of estimated interaction coefficients |
1 2 3 4 5 | data = data.gen()
model = gesso.cv(data$G_train, data$E_train, data$Y_train, grid_size=20,
parallel=TRUE, nfolds=3)
gxe_coefficients = gesso.coef(model$fit, model$lambda_min)$beta_gxe
g_coefficients = gesso.coef(model$fit, model$lambda_min)$beta_g
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.