Statystyka/zajecia13/.Rhistory
Jakub Adamski 4a667af647 zajecia13
2021-06-14 18:01:34 +02:00

22 lines
819 B
R

head(mtcars)
plot(mtcars$mpg, mtcars$wt, xlab = "mpg", ylab = "wt", pch = 16)
shapiro.test(mtcars$mpg)$p.value
qqnorm(mtcars$mpg)
qqline(mtcars$mpg, col = "red")
shapiro.test(mtcars$wt)$p.value
qqnorm(mtcars$wt)
qqline(mtcars$wt, col = "red")
shapiro.test(mtcars$mpg)$p.value
qqnorm(mtcars$mpg)
qqline(mtcars$mpg, col = "red")
shapiro.test(mtcars$wt)$p.value
qqnorm(mtcars$wt)
qqline(mtcars$wt, col = "red")
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$p.value
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$est
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$conf.int
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$p.value
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$est
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$p.value
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$est