I'm an R newbie. I'm using "clogitL1" to run a regularized conditional logistic regression for a matched case-control study with 1021 independent variables (metabolites). I'm not able to extract the regression coefficients. I've tried summary(x)
, coef(x)
, coefficient(x)
, x$beta
- none of them work. I'm able to run it OK, and if I follow it with "cv.clogitL1" I can extract the cross-validated estimated coefficients, but not the estimated coefficients for the original model. Here's some of my code:
strata=sort(data.meta$MATCHED_NEW)
condlog <- clogitL1(y=data.meta$BCR, x=data.meta$ln_metab[, data.features ], strata,
numLambda=100, minLambdaRatio=0.000001, alpha = 1.0)
"strata" is a vector indicating pairing of cases & controls. "data.meta$BCR" is a vector inicating case or control status "data.meta$ln_metab" is a matrix with observations as rows and metabolite levels as columns "data.features" is a vector indicating which metabolites passed several dimension reduction filters.
Appreciate any suggestions.