Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Linear regression Model [Empirical Models]
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
x = c(0.99, 1.02, 1.15, 1.29, 1.46) y = c(90.01, 89.05, 91.43, 93.74, 96.73) plot(x,y) # make a plot abline(lm(y ~ x)) # plot the regression line lm(y ~ x)
[
+
]
Show input
Absolute running time: 0.51 sec, cpu time: 0.68 sec, memory peak: 32 Mb, absolute service time: 0,52 sec
edit mode
|
history
|
discussion
Call: lm(formula = y ~ x) Coefficients: (Intercept) x 73.81 15.55