chjackson / survextrap

Survival Extrapolation With a Flexible Parametric Model and External Data
https://chjackson.github.io/survextrap/
GNU General Public License v3.0
8 stars 3 forks source link

Spline specification not working #7

Closed BenKearns closed 11 months ago

BenKearns commented 1 year ago

When attempting to replicate the cetuximab case-study, an error arises with the code: mspline <- mspline_spec(Surv(years, d) ~ 1, data=cetux, df=6, add_knots=20) (from https://chjackson.github.io/survextrap/articles/cetuximab.html)

Error output is: Error in make_td(mf) : argument "data" is missing, with no default

This error also occurs when using other datasets.

chjackson commented 1 year ago

Thanks - I think this is now fixed in https://github.com/chjackson/survextrap/commit/ec2ecd9a7839f7f40de006ac9e9f0104b27ca14e and the r-universe version has updated with the fix.