Master Simple Linear Regression with Numeric Predictor in R

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

  • @Les_decouvertes
    @Les_decouvertes 9 месяцев назад +1

    Dear Yuza,
    Always a pleasure to look at your new publications, very informative.
    I often use the report package to have a global and clear overview of my dataset and/or model.
    Looking forward to seeing what happens next, perhaps with classification models (SVM, KNN, LR, etc.),
    THANKS !

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад +1

      Thanks for such a nice feedback! Sure, I'll come to machine learning models, like SVM and KNN etc., but I would first cover the basics as much as I can, linear, logistic, mixed-effects, may be bayesian first. I hope you can stick as long as it takes. thank you for your continuous support!

  • @aminebahmed7526
    @aminebahmed7526 9 месяцев назад +2

    Excellent explanation, waiting for multiple linear regression video. I would add that it is sometimes useful to make the intercept interpretable by fitting a model with a centered independent variable (by subtracting each value of the var from its mean), which would give a practical interpretation of the intercept when x = 0, in which case the intercept would correspond to the increase in y when x = mean (independent variable).

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад +4

      Great suggestion! I also thought of it, but decided not to overload video with more ideas. This topic would be a great separate video though. Thanks for watching!

  • @laurareinoso4684
    @laurareinoso4684 2 месяца назад

    Hi, I’m Laura from Colombia. Your videos have been of great help for my research project which is obligatory to graduate from a major in Ecology. Thank you so much

  • @cristianlizarazo8016
    @cristianlizarazo8016 24 дня назад

    excelente Dr.

  • @muhammedhadedy4570
    @muhammedhadedy4570 8 месяцев назад

    Excellent presentation, as usual. I would be so grateful if you could make tutorials on logistic and Cox regression models.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад +1

      Thanks! The logistic regression is definitely the next on 😉 but I have to cover liner regression first with a few more videos. Coc regression is also on the list. Thanks for watching!

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 8 месяцев назад

    Your knowledge of interesting packages is impressive.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      Glad you like them! for most of them, I have an extra video because I use them everyday in my job and find them very useful

  • @fourlokody
    @fourlokody 9 месяцев назад

    great video, I like seeing the process from start to finish. would enjoy seeing more datasets analyzed how you like to do it.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      Thanks! Great idea! Will do! But I plan to cover some basic modeling first, then start to analyzing datasets from start to finish. If you know some good resource for publicly available data, please share it with me.

  • @ibrahimlawan9663
    @ibrahimlawan9663 9 месяцев назад

    Very useful. This is an excellent explanation. Looking forward to more regression videos.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад +1

      Glad it was helpful! More to come! Thanks you for watching!

  • @richardmose9266
    @richardmose9266 9 месяцев назад

    Very useful, thanks

  • @yurisilvadesouza3059
    @yurisilvadesouza3059 9 месяцев назад

    Amazing video and explanation! I’m always looking for better ways to interpret and explain LMs so that I can teach others better, and you definitely nailed it!!! Thank you very much. My mental model predicted you explained well the remaining variation in my brain regarding LMs (P

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      good sense of humor! 😂 but you forgot to say "no pressure" 😂 Thanks for such a nice feedback! I'll try my best. By the way, you have a nice name, Yuri ;) My name is almost as beautiful - Yury. Thanks for watching!

  • @emredunder9108
    @emredunder9108 8 месяцев назад

    Perfect video!

  • @caduguimaraes
    @caduguimaraes 9 месяцев назад

    Once again, amazing vídeo

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      Thank you so much 😀 Glad you enjoyed it. thank you for your continuous support!

  • @colindoherty372
    @colindoherty372 9 месяцев назад

    Sensational teacher, super clear and very useful. I often wonder with your videos, what are your steps when the performance of the model violates certain assumptions. Is there a basic and agreeded upon stepwise process to handle violations?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      thanks for a nice feedback, Colin! depends on assumptions. you check the assumptions one by one and try to relax them. for instance, when there are outliers, remove, when data is very scewed, log them. When nothing helps (or if you don't want to solve those problems), use some non-parametric alternative: robust model, median model (quantile regression), bootstrapped regression. I already covered them all on my channel, so, check them out. Cheers and thanks for watching!

  • @amareddoud6781
    @amareddoud6781 8 месяцев назад

    super your way of explaining, hyper well summarized, your pedagogical method is an example to follow. I wanted to know how to access your blog, which is currently inaccessible. Thank you for replying.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      Glad it was helpful! My blog was unfortunately banned, because I did not want to pay for increasing traffic. I don't wanna pay, because I don't earn from my blog and I write about open source software, so, it's counterintuitive for me to pay for doing something good for others. The youtube is still free though, so, I might be providing scripts on my blog offline for members, but I'am not sure people would pay even a minimum amount like 1$ or so per month or so. If at least one person, like you, would, I would organize membership on youtube. However, why would pay even 1$ if youtube is free and you just can rewatch the video, right?

  • @Marieblue70
    @Marieblue70 4 месяца назад

    And where can I find your video explaining the 'performance' package to visually check the model assumptions? Thank you very very much!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  4 месяца назад

      Oh, it's actually on the channel. the thumbnail says: "check how good your model is" ;) hope you enjoy that one.

  • @Walker-nb9de
    @Walker-nb9de 9 месяцев назад

    You are the best😍😍😍😍

  • @juliusirungu1363
    @juliusirungu1363 9 месяцев назад

    Great video as always.
    How to use emmeans to predict multiple linear regression with category variables is my question on the next video

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад +1

      Great suggestion! First, I plan only one categorical predictor video. Then the next video would be multiple linear regression interpretation, where I'll use one numeric and one categorical. Thanks for continuous support!

  • @ahmadratibsharafat6737
    @ahmadratibsharafat6737 9 месяцев назад

    Very amazing videos could you please make videos on parametric tests too

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      Thanks! I actually did a while ago. Just look for t-test, anova on just scroll through my channel and you'll find them. Thanks for watching!

  • @pentagoseed8739
    @pentagoseed8739 8 месяцев назад

    Excellent tutorial and how you explain the concept, overall nice video. but why it seems i cant visit your website? it says that the site is not found. thank you

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      thanks! just a few days ago my site was closed, since they wanna me to pay for a traffic. But since I do not earn anything from my website and R is open source, I don't wanna and actually can't pay as much as they want. I am working on a solution for it.

  • @abdur-rahmanridwan9045
    @abdur-rahmanridwan9045 8 месяцев назад

    Awesome video. It will be great to see a similar video on logistic regression. Is this something you are considering anytime soon?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад +1

      Absolutely! In fact it's the next series of videos I plan. I just need to finish up with a few more videos on classic linear regression before. Thanks for watching and commenting, that's the best support!

    • @abdur-rahmanridwan9045
      @abdur-rahmanridwan9045 8 месяцев назад

      @@yuzaR-Data-Science Great to hear. Looking forward to the next videos.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      cheers!

  • @itsahmedian
    @itsahmedian 9 месяцев назад

    please make a video on PCA

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 месяцев назад

      Great suggestion. I'll put it on the list! Thanks for watching!

  • @Marieblue70
    @Marieblue70 4 месяца назад

    I am calculating a linear model for a questionnaire where the variables have 5 levels (Likert scale from 1 = very good to 5 = very bad). I am unsure whether to treat these variables as factors or as numeric. Since I treat the Likert scale as an interval scale, I have been treating these variables as numeric, but I am not sure if this is correct. Is there a standard rule for this?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  4 месяца назад

      that's an interesting question. I usually hate likert scale, exactly because of that uncertainty. The recomendation is to use ordinal regression or ordinal logistic regression, but I struggle with interpretation and they usually produce shitty results. So, I use either kruskal-wallis / mann-whitney for univariable, or just linear regression for multivariable questions. I think the bootstrapped linear regression would also deliver if you have a lot of data.

  • @laurareinoso4684
    @laurareinoso4684 2 месяца назад

    The confidence intervals are not shown in the graph of the Normality of Residuals. Do you know how can I visualize it or does it have to do with the package itself?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 месяца назад +1

      sure, there one or other dependencies packages missing. just update all the packages in rstudio and install all the dependencies which will be suggested to you. and your cis will appear

    • @laurareinoso4684
      @laurareinoso4684 2 месяца назад

      @@yuzaR-Data-Sciencethank you! It worked :)

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 месяца назад

      Glad it did ;)

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 8 месяцев назад

    Strictly speaking the line should only fit with the range of x values.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      If this would be the case, the intercept could not be calculated, right ? 😉

    • @haraldurkarlsson1147
      @haraldurkarlsson1147 8 месяцев назад

      No, it just means that the predictions don't go beyond below the x min.@@yuzaR-Data-Science

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 месяцев назад

      yes, when we just plot the predictions of, let's say, age, the model does not extrapolate and only includes the range of the data we have. it only does so, when we explicitly ask for it, like age[0, 50, 100]