efficient looping logistic regression in R
问题 I'm trying to run multiple logistic regression analyses for each of ~400k predictor variables. I would like to capture the outputs of each run into a row/column of an output table. My data organised in two parts. I have a 400000 x 189 double matrix ( mydatamatrix ) that contains the observations/data for each of my 400000 predictor variables measured in 189 individuals ( P1 ). I also have a second 189 x 20 data frame ( mydataframe ) containing the outcome variable and another predictor