Repro:
survObj = flexsurvspline(Surv(rectime,censrec)~1,data=bc)
summary(survObj, t=0:10, type = "hazard")
Error:
Error in dbasis(knots, tsfn(x, timescale)) * gamma :
non-conformable arrays
Looks like the issue is line 163 of hsurvspline. Some of the components of the product are being filtered using the selector vector 'ind', whereas others are not.
Repro:
survObj = flexsurvspline(Surv(rectime,censrec)~1,data=bc) summary(survObj, t=0:10, type = "hazard")
Error:
Looks like the issue is line 163 of hsurvspline. Some of the components of the product are being filtered using the selector vector 'ind', whereas others are not.