ZheyuanLi / SplinesUtils

GNU General Public License v3.0
11 stars 2 forks source link

error: Required SplineTerm not found! #4

Open ariannaluzi opened 1 year ago

ariannaluzi commented 1 year ago

Hi! I tried to use RegSplineAsPiecePoly function but I received an Error. First I've done my spline model spline_mod <- lm(chi ~ bs(teta, knots=c(0.13, 0.36))) and I have no problem with that, then

library(SplinesUtils) piecewisePoly <- RegSplineAsPiecePoly(spline_mod, "bs(teta, knots=c(0.13, 0.36))",shift=FALSE)

but R says

Error: Required SplineTerm not found! Available terms are:

Could you help me? Thank you so much!

oyvfos commented 11 months ago

bump. Also when fixing the error above with spaces, next error is : Error in assign == pos : comparison (1) is possible only for atomic and list types