Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Polynomial-regression/R/polynomial-regression-1.r
Normal file
3
Task/Polynomial-regression/R/polynomial-regression-1.r
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
x <- c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
|
||||
y <- c(1, 6, 17, 34, 57, 86, 121, 162, 209, 262, 321)
|
||||
coef(lm(y ~ x + I(x^2)))
|
||||
1
Task/Polynomial-regression/R/polynomial-regression-2.r
Normal file
1
Task/Polynomial-regression/R/polynomial-regression-2.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
coef(lm(y ~ poly(x, 2, raw=T)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue