Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
248 B
0
Indexable
Never
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)