R Codes

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

R Codes

1. Save your data as a csv file


2. Importing Data: data=read.csv("C:\\Users\\ISAAC AMPOFI\\OneDrive\\Desktop\\Power.csv")
3. Plot your data: plot(data)
4. Descriptive statistics: summary(data)
5. Regression model: model1=lm(Y~X1+X2+X3,data=data)
6. Predict: predict=45.9205+9.8471*X1+0.5711*X2-0.4133*X3
X1=24
X2=75
X3=98

You might also like