1

I have created a multiple regression that is composed of numerous spline regression, linear terms and interaction terms. Here is my regression :

FinalModel<-lm(House_price~bs(total_number_of_rooms,knots=c(5),degree = 4)
+ bs(year_built,knots=c(1976,1996,2006),degree = 9)
+ bs(square_feet,knots=c(104),degree = 2)+ number_rooms" * "number_kitchen + home_type" * "genre_documentary + Number_windows" * "bulding_companies)

How can I find the coefficient and the equation formula for all regressions for each spline?

I have installed this package install_github("ZheyuanLi/SplinesUtils") To use this library: RegBsplineAsPiecePoly and it did not work.

Message error:​ Error in RegBsplineAsPiecePoly and Required SplineTerm not found!

Suren
  • 5,775
  • 3
  • 26
  • 39
Zach
  • 21
  • 4
  • When asking for help, you should include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. Show the line of code you ran that produced that error message. – MrFlick Nov 04 '19 at 01:45
  • [Here's an answer](https://stackoverflow.com/q/37379609/903061) for the popular `mgcv` package... if that's what you're using. – Gregor Thomas Nov 04 '19 at 02:42
  • (I am package author) Why do you truncate the error message? It then tells you what terms are available and you just need to SELECT one! – Zheyuan Li Dec 16 '20 at 13:07

0 Answers0