Questions tagged [cv.glm]

2 questions
1
vote
1 answer

cross-validation of a glm model - variable lengths differ

I am trying to do a cross-validation of a glm model, but get an error regarding the colnames in the input. Does anyone no why? df.t <- structure(list(hsa_miR_1271_5p = c(5.49810955587331, 2.59625048602785, -1.18451789616878, 5.15323970237091,…
user2300940
  • 2,355
  • 1
  • 22
  • 35
0
votes
1 answer

cv.glm variable lengths differ despite correct model formula

I am experiencing the same error as raised and answered here (cv.glm variable lengths differ) and in various other threads. Despite using the "correct" formula structure as suggested in all these threads, the error persists: mod <- glm(Y ~ Var_1,…
user303287
  • 131
  • 5