Linear Regression in R, Step by Step
Вставка
- Опубліковано 8 лип 2024
- This video, which walks you through a simple regression in R, is a companion to the StatQuest on Linear Regression • Linear Regression, Cle...
If you want to just copy and paste the R code, you can get it from the StatQuest GitHub site: github.com/StatQuest/linear_r...
If you'd like to support StatQuest, please consider...
Patreon: / statquest
...or...
UA-cam Membership: / @statquest
...buying my book, a study guide, a t-shirt or hoodie, or a song from the StatQuest store...
statquest.org/statquest-store/
...or just donating to StatQuest!
www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
/ joshuastarmer
#StatQuest
Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
Hello, can you do a series of double hurdle regression (craggs vs tobit) , using r? Much appreciation for your video s sir!
Thanks so much. This is my new favorite channel.
Hooray! BAM! :)
I love StatQuest. Thank u for you'r brilliant way of teaching!
You're very welcome!
You, sir, are a god send. Literally helping me understand stats conceptually.
bam! :)
Thank you so much. I needed this video badly!!
bam!
very good explanation for explaining the necessary things clear
Glad you liked it!
Genial, muchísimas gracias.
De nada! :)
Looove this. Thx so much. Needs more stargazer 😎
Thanks!
Thank you very very much. this was super helpful
Glad it helped!
Damn, this was fun!
Thanks!
Thank you!
You're welcome!
Nice, thanks. Next one, try to carry out a test with examples and interpret its result. Grazie tanta.
Noted!
Thank you so much
:)
If we have multiple X features, does the p-value in last line (line corresponding to F-statistics) refer to multiple testing p-value for all X features' coefficient?
The F-statistics test the model as a whole, so it is only one test. And that means it doesn't factor in multiple testing.
@@statquest Gotcha! Thank you:)
Your videos are really helpful thank you so much!!
THANK YOU!!!
You're welcome!
i love statQuest
Hooray! :)
Statquest is the best
Thanks! :)
Hello doctor thanks you🎓🎓🎓👍👍👍💖💖💖
Thanks!
Nice video. What do you think about checking the model by verifying the assumptions for residuals. I.e, normality, independence, zero mean and constant variance
You can definitely do that if you want.
For the Std. Error of the Coefficients, its significant level would be 5% right? If not, how can I know it?
The standard cutoff is 0.05, or 5%.
Thank you Josh - these videos are so helpful.
Is there a statistical test for this question: "is the slope coefficient of a linear regression model equal to 1?"
The context is for a quantitative test, comparing it to a series of analytes of known quantity.
I'd like to know if the test has a bias, e.g. it over-quantitates higher concentrations (or under-quantitates lower concentration samples)
Thanks again
I don't believe that there is one, but you can plot the residuals and see if you see a bias there (the residuals should be normally distributed - and you can test that with something called a K-S Test).
I love StatQUest. Can you please explain how to show the equation or at least the R2 on the plot? pleaseeee
If you want to add text to a plot, you can use the text() function. stat.ethz.ch/R-manual/R-devel/library/graphics/html/text.html
@@statquest thank you!!
Nice video, but when I enter the last line of code it doesn't show me a line? It doesn't show me an error either
Did you type it in yourself or did you download my code? I just reran my code and it worked fine.
quality.
Thanks!
thank you but itd be better if you had a better microphone
Thanks! These days I have a much better microphone.
First one
BAM! :)
I hateee😂
noted
i dislike statquest
noted
You are a way off mister. You start with a normal probability testing. I suggest some statistical classes.
You can skip that step, if, later on, you look at the residuals, which we do.