Thanks! Here's the traceback, which includes the code I ran. Sorry, I'm not sure I can create a short example to replicate the same error that I get from my data. That said, I realize I'm not giving you much to go on with this question and that there may not be an answer to the question ...
Iteration 1 Iteration 2
Error in `[<-`(`*tmp*`, , (j + 1):(j + m), value = c(2.53333333333333, :
subscript out of bounds
In addition: There were 11 warnings (use warnings() to see them)
> traceback()
2: areg(X[s, ], xf[s, i], xtype = vtype[-i], ytype = ytype, nk = min(nk),
na.rm = FALSE, tolerance = tolerance)
1: aregImpute(~Outcome + Age + sd.pt.rr + xc.hr.resp + xc.hr.spo2 +
xc.resp.spo2 + mean.pt.rr +
mean.hr + mean.resp + mean.spo2 +
sd.hr + sd.resp + sd.spo2 + nsbp + ndbp + nmbp + isbp + idbp +
imap + COSEn + RR + SD.RR + DFA + PAF + PNSR + PECT + LDS1 +
DS + BIN.1 + BIN.2 + BIN.3 + BIN.4 + BIN.5 + BIN.6 + BIN.7 +
BIN.8 + BIN.9 + BIN.10 + BIN.11 + BIN.12 + CO2 + CO2.tsl +
PHOSPHORUS + PARTIAL.THROMBOPLASTIN.TIME + GLUCOSE + CALCIUM +
BLOOD.UREA.NITROGEN + TOTAL.PROTEIN + TOTAL.BILIRUBIN + AST..GOT. +
CREATININE + ALBUMIN + ALKALINE.PHOSPHATASE + ALT..GPT. +
SODIUM + OXYGEN.SATURATION + POTASSIUM + PO2 + BICARBONATE +
PH.ARTERIAL + PCO2 + BASE.EXCESS + WHITE.BLOOD.CELL.COUNT +
MAGNESIUM + PLATELET.COUNT + HEMATOCRIT + HEMOGLOBIN + PROTIME +
PROTIME.INR + LACTIC.ACID + FIO2 + NEUTROPHILS.PERCENT +
TROPONIN.I + lab.grp1a.tsl + lab.grp1b.tsl + lab.grp2.tsl +
lab.grp3.tsl + lab.grp4.tsl + lab.grp5.tsl + lab.grp6.tsl +
PARTIAL.THROMBOPLASTIN.TIME.tsl + ALBUMIN.tsl + OXYGEN.SATURATION.tsl +
PROTIME.tsl + PROTIME.INR.tsl + LACTIC.ACID.tsl + FIO2.tsl +
NEUTROPHILS.PERCENT.tsl + TROPONIN.I.tsl, data = d2, n.impute = 100)
1: In rcspline.eval(z, knots = parms, nk = nk, inclx = TRUE) :
could not obtain 3 interior knots with default algorithm.
Used alternate algorithm to obtain 3 knots