How to Develop a Piecewise Linear Regression Model in R

Поделиться
HTML-код
  • Опубликовано: 4 июл 2024
  • In this lesson, we learn how to develop a piecewise linear regression model in R.

Комментарии • 23

  • @samiahmed086
    @samiahmed086 4 года назад

    thank you , this helped me a lot, I'm trying to apply the same model but with multiple knots, your way is clear and straightforward, thank you

  • @scarlettknight
    @scarlettknight 6 лет назад

    this helped me a ton with homework thanks a bunch!

  • @alejandroledezma9252
    @alejandroledezma9252 6 лет назад +1

    Very interesting methodology! Thanks! It has helped me a lot. How would you implement this same methodology for three slopes??

  • @pedrolamprea2933
    @pedrolamprea2933 5 лет назад +2

    Many thanks for your lession. I have a question if you please can reply me. How can the same analysis be made with n knot points and several linear segments? Thanks

  • @emilyphillips4299
    @emilyphillips4299 2 года назад

    Excellent video! If I were to add a second break to the equation, would the dummy knot then be 0, 1, and 2? Thank you!

  • @jignalakhani3692
    @jignalakhani3692 2 года назад

    Amazingly explained , helped a lot

  • @gustaf7966
    @gustaf7966 6 лет назад

    Great video! I was wondering how to plot the linear regression in R using ggplot so I can visualise the break point. Many thanks!

  • @hareedyhareedy2863
    @hareedyhareedy2863 5 лет назад

    Great Thanks. I hope if you could make videos for other types of regression.

  • @gregwoodin5630
    @gregwoodin5630 4 года назад

    Thanks! I did have to put you on 0.75 speed for some of it but overall this was really helpful.

  • @Neonax1
    @Neonax1 2 года назад

    You are a lifesaver

  • @christopherhernandez4609
    @christopherhernandez4609 5 лет назад +4

    I'm literally sitting in her class right now trying to figure out how to do this.

  • @xliu1623
    @xliu1623 3 года назад

    So in the right of the breaking point, the [new b ]was actually (b1+b2), right? But how can I get the 95% CI or p-value of the [new b]? Thanks!

  • @jordanhowell2
    @jordanhowell2 6 лет назад

    Hello. How would you do this with multiple variables?

  • @jaysolanki6150
    @jaysolanki6150 Год назад

    Thank you so much.

  • @luelsegedemishaw5981
    @luelsegedemishaw5981 6 лет назад

    Why did you pick the value of 90? Is there a statistical way of determining the cut of values for a scatterpolt that could have a number of cutoff values? Thanks!

    • @sxmirzaei
      @sxmirzaei  6 лет назад

      I picked the breaking point visually by looking at the graph.

  • @ryanchen7162
    @ryanchen7162 4 года назад

    Great video! Can I download the code and data somewhere?

  • @fazailcheema2511
    @fazailcheema2511 2 года назад

    Can we apply standard deviation al9ng with graph lines?

  • @astorina
    @astorina 2 года назад

    thank you. I have a question, is it possible to compute the b2 value without the minitab lm function that seems to compute it , is it possible for example to do this in excel ?
    Brgds

    • @sxmirzaei
      @sxmirzaei  2 года назад +1

      Yes, you can do the same thing in excel. To do so, you have to add the "data analysis" add-in in excel and use the regression function in that tab. you can google and will find plenty of instructions on how to run regression in Excel.

    • @astorina
      @astorina 2 года назад

      @@sxmirzaei Thank you very much , I have found it in the meantime and it works very nice, thanks to you for your video that triggers my interest ... And more thanks for your fast answer and follow up ...Brgds

  • @flamboyantperson5936
    @flamboyantperson5936 6 лет назад

    Great tutorial but you need to slow down you are going to fast in the audio I have to pause and listen again. Thank you.

    • @yandhi4202
      @yandhi4202 5 лет назад

      adjust the speed using the gear icon in the video's bottom bar