Running iterated regressions for data divided into N chunks in R
问题 I have a dataframe structured like the following: birthwt tobacco01 pscore pscoreblocks 3425 0 0.18 (0.177, 0.187] 3527 1 0.15 (0.158, 0.168] 1638 1 0.34 (0.335, 0.345] The birthwt column is a continuous variable measuring birth weight in grams. The tobacco01 column contains values of 0 or 1. The pscore column contains probability values between 0 and 1. The pscoreblocks takes the pscore column and breaks it down into 100 equally sized blocks. I am trying to find an efficient way to do the