Mark Danese
Mark Danese
Just in case my example was misleading, this shows the problem in selecting a record immediately after opening the fst file. ``` > # Fresh R session > > library(fst)...
I just ran this: ```predict(fst, type = "probcure", newdata = data.frame(tx_2L_01 = 1))``` and this was the error. ```Error in nsx(log(days_to_death), knots = c(4.1190041246092, 4.83628190695148, : object 'days_to_death' not found```...
Thanks to both of you for your help. It is not a rush. @mclements the error was `Error in .subset2(x, i, exact = exact) : attempt to select less than...
with days_to_death: ``` 8: (function(x, i, exact) if (is.matrix(i)) as.matrix(x)[[i]] else .subset2(x, i, exact = exact))(x, ..., exact = exact) 7: `[[.data.frame`(data, var[i]) 6: data[[var[i]]] 5: exposed(newdata) 4: predict.stpm2.base(object =...
I installed your commit and it looks like it works. For some reason, I can't seem to find the documentation for the predict function to understand what "exposed" is doing....
Just another person who really likes this idea since we use ReporteRs all the time. I have found the ReporteRs developer to be a very helpful person, in case you...