Untitled

 avatar
unknown
plain_text
2 years ago
248 B
3
Indexable
Y=c(110, 80, 70, 120, 150, 90, 70, 120)
Y

x1=c(30,40,20,50,60,40,20,60)
x1

x2=c(11,10,7,15,19,12,8,14)
x2

RegModel=lm(Y~x1+x2)
RegModel

# Plotting regression plan using scatterplot3d
library(scatterplot3d)
scatterplot3d(Y, x1, x2)
Editor is loading...