File:R2.png

From 太極
Jump to navigation Jump to search

R2.png(500 × 400 pixels, file size: 15 KB, MIME type: image/png)

Summary

x <- seq(0, 2.5, length=20)
y <- sin(x)
plot(x, y)
abline(lsfit(x, y, intercept = F), col = 'red')

summary(fit)$r.squared
# [1] 0.8554949

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:46, 21 May 2023Thumbnail for version as of 13:46, 21 May 2023500 × 400 (15 KB)Brb (talk | contribs)<syntaxhighlight lang='rsplus'> x <- seq(0, 2.5, length=20) y <- sin(x) plot(x, y) abline(lsfit(x, y, intercept = F), col = 'red') summary(fit)$r.squared # [1] 0.8554949 </syntaxhighlight>

The following page uses this file:

Metadata