Hi Kevin,
It is very nice of you to supply such precious materials to me. I have some questions after reading your post.
My response value is continuous value just like Chip-seq reads counts and my predictive values are expression of genes. Should I use “poisson” instead of “multinomial” in “cv.glmnet” function? (In the help page of “glmnet”, it recommend to use poisson when response is non-negative counts).
In the “Downstream” section of the post (https://www.biostars.org/p/287511/#287555), you built a new regression using the best predictors from “cv.glmnet”. But the best predictors as well as coefficients are already given by “cv.glmnet” (store in “co” in “Identify best predictors” section). Why do not you use these?
In my own analysis, I also plot variable deviances vs. shrinkage parameter, λ (lambda) as your “Perform 10-fold cross validation” section. But my plot is strange, the plot is below:
https://pan.baidu.com/s/1_oLWxTQDzrzoLz_V1oOrHA
Is it normal? What is the key of this plot? (Just like the scatterplot of predictor vs residuals in “lm” function which should look like stars in the sky)
- I plot the scatterplot of response vs predicted response by using “points(modellingGlm$TB,as.vector(fitted(finalGlm)))”, the plot is here (https://pan.baidu.com/s/1t9_CGxTVY_l-XqijdBteSQ). The Pearson coefficient value is 0.97. The p-value of wald.test is almost 0. Can I say that the model is suitable with confidence?


