powered by
Grid search for tuning parameters to fit the LUCID model
tune.lucid( G, Z, Y, CoG = NULL, CoY = NULL, family = "normal", useY = TRUE, K = 2:6, Rho_G = NULL, Rho_Z_InvCov = NULL, Rho_Z_CovMu = NULL )
Genetic features/environmental exposures, a matrix.
matrix
Biomarkers/other omics data, a matrix.
Disease outcome, it is suggested to transform it into a n by 1 matrix.
Optional, matrix. Covariates to be adjusted for estimating the latent cluster.
Optional, matrix. Covariates to be adjusted for estimating the outcome.
Type of outcome Y. It should be choose from "normal", "binary".
Whether or not to include the information of Y to estimate the latent clusters. Default is TRUE.
Numeric sequence. Number of latent clusters.
Numeric sequence, Lasso type penalty for selection of G.
Numeric sequence, Lasso type penalty for the inverse covariance structure of Z.
Numeric sequence, Lasso type penalty for the product of covariance matrix and mean of Z
A list. Containing model BICs of different combination of tuning parameters.
# NOT RUN { tuenpar <- tune.lucid(G = G1, Z = Z1, Y = Y1, family = "binary", Rho_G = seq(0.01, 0.02, by = 0.005), Rho_Z_InvCov = seq(0.1, 0.3, by = 0.1), Rho_Z_CovMu = seq(80, 100, by = 10)) # }
Run the code above in your browser using DataLab