R: Fitting a Model

  Рет қаралды 8,329

ManyMiniMoose

ManyMiniMoose

Күн бұрын

Learn how to fit a model in R, plot the smooth curve over the data, using lm() and predict() functions.

Пікірлер: 8
@loki92loki
@loki92loki 2 жыл бұрын
Thanks, Help me a lot
@g.greyzone7300
@g.greyzone7300 2 жыл бұрын
This is so good and exactly what I was looking for. Thank you so much. Why, oh why, does the person who does something so good, stop here. Seriously sad :(
@darthszarych5588
@darthszarych5588 2 жыл бұрын
This was helpful thank you!
@waleros
@waleros 6 жыл бұрын
Nice! Thanks! Although, do you know any methods on how to determine the proper equation based on the shape of the plotted data?
@manyminimoose1118
@manyminimoose1118 6 жыл бұрын
My pleasure! The proper equation can be difficult to determine, and in general it comes down to guesswork and experience. If you know more about the process that generates your data, then you can use that to get a closer approximation. Something you can play around with are more complicated formulas, such as y~log(x), and composite formulas such as y~exp(x)+x^2+x.
@manyminimoose1118
@manyminimoose1118 6 жыл бұрын
If you want a method that doesn't require you to guess the proper equation, you might try something like "loess" (stat.ethz.ch/R-manual/R-devel/library/stats/html/loess.html), you can use it in a similar way to "lm", and it will work with "predict". Try running the example code at the bottom of the link.
@waleros
@waleros 6 жыл бұрын
Awesome! Thanks a lot!!! Keep​ it going!!!
@manyminimoose1118
@manyminimoose1118 6 жыл бұрын
Any time! I'm moving my educational content to a new channel (ManyMiniMaths, goo.gl/4UMWZt) so if you want more similar content you should check it out! I'm also taking suggestions for topics you'd like covered (comment on a video or tweet me @mrparker9090).
Polynomial Regression in R
11:07
Tom Sherratt
Рет қаралды 32 М.
Cleaning🤣 #shorts #トイキッズ
00:18
Toy Kids★トイキッズ
Рет қаралды 10 МЛН
Самое неинтересное видео
00:32
Miracle
Рет қаралды 2 МЛН
A Quick Introduction to Nonlinear Regression
13:49
Edward Roualdes
Рет қаралды 13 М.
Polynomial Regression in R | R Tutorial 5.12 | MarinStatsLectures
6:47
MarinStatsLectures-R Programming & Statistics
Рет қаралды 86 М.
Polynomial Regression in RStudio
9:03
Tom Sherratt
Рет қаралды 35 М.
Fitting Functions to Data in R
20:59
Counting on Justice
Рет қаралды 56 М.
Linear Regression in R, Step-by-Step
5:01
StatQuest with Josh Starmer
Рет қаралды 234 М.
Simple Linear Regression in R | R Tutorial 5.1 | MarinStatsLectures
5:38
MarinStatsLectures-R Programming & Statistics
Рет қаралды 565 М.
R - Polynomial Regression
5:21
Jalayer Academy
Рет қаралды 49 М.
Fitting Growth Models
58:32
TheUdorblab
Рет қаралды 7 М.
Lecture60 (Data2Decision) Generalized Linear Modeling in R
21:15
Checking Linear Regression Assumptions in R | R Tutorial 5.2 | MarinStatsLectures
7:49
MarinStatsLectures-R Programming & Statistics
Рет қаралды 332 М.
Cleaning🤣 #shorts #トイキッズ
00:18
Toy Kids★トイキッズ
Рет қаралды 10 МЛН