Search notes:
R function: fitted
#
# See also -> resid
#
x <- c(25, 23, 22, 18, 29, 19, 24, 28, 21, 26, 23, 31, 26, 27, 30, 24, 22)
A = 3
B = -4
E = rnorm(length(x), mean = 0, sd = 3)
y <- A + B*x + E
X11()
plot (x, y, col='red', pch=16)
fit <- lm (y~x)
points(x, fitted(fit), col='blue', pch=16)
abline(coef(fit)[1], coef(fit)[2], col='blue')
z <- locator(1)
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78
Stack trace:
#0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array)
#1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740535705, '18.191.191.65', 'Mozilla/5.0 App...', NULL)
#2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/fitted(58): insert_webrequest()
#3 {main}
thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78