Open ariannaluzi opened 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!
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
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!