BIO215 practical 1
Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!
regression test
Model = lm(y~x,data = yourdatanamehere, na.action = na.exclude) summary(Model)
correlation test
cor.test(x,y)
Importing files
dataname<- read.csv("dataname.csv") attach(dataname) dataname
dont forget a
header of the data
if we using ggplot
install.packages("ggplot2") library(ggplot2)
ploting in base r
plot(x,y,xlab="xvar",ylab="yvar",main="title") varname=lm(y~x) abline(varname)
step 1
setwd()