R语言做线性回归

a2.csv:
x1, x2, x3, y
tech1, tech13, pos2,0.5
tech2, tech12, pos1,0.6
tech3, tech11, pos3,0.7
tech2, tech12, pos1,0.6
tech3, tech11, pos3,0.6


my_data<-read.csv('../a2.csv')
model<-lm(y~x1+x2+x3,data=my_data)
model

posted @ 2021-10-27 11:08  耿乾坤java  阅读(167)  评论(0)    收藏  举报